aboutsummaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/main/scala/com/softwaremill/sttp/package.scala4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/main/scala/com/softwaremill/sttp/package.scala b/core/src/main/scala/com/softwaremill/sttp/package.scala
index 69f20f0..60ef6f5 100644
--- a/core/src/main/scala/com/softwaremill/sttp/package.scala
+++ b/core/src/main/scala/com/softwaremill/sttp/package.scala
@@ -146,6 +146,8 @@ package object sttp {
/**
* Content type will be set to `application/octet-stream`, can be overridden
* later using the `contentType` method.
+ *
+ * File name will be set to the name of the file.
*/
def multipart(name: String, data: File): Multipart =
multipart(name, data.toPath)
@@ -153,6 +155,8 @@ package object sttp {
/**
* Content type will be set to `application/octet-stream`, can be overridden
* later using the `contentType` method.
+ *
+ * File name will be set to the name of the file.
*/
def multipart(name: String, data: Path): Multipart =
Multipart(name,