Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
mowczarek committed May 8, 2023
1 parent bd84751 commit 35b206e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/.js/src/main/scala/io/udash/utils/FileUploader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ class FileUploader(url: Url) {
(0 until input.files.length).map(input.files.item)
)

/** Uploads provided `file` in a field named `fieldName` with optional custom request headers. */
/** Uploads provided `file` in a field named `fieldName` with optional additional request headers. */
def uploadFile(
fieldName: String, file: File, extraData: Map[js.Any, js.Any] = Map.empty, additionalRequestHeaders: Map[RequestName, RequestValue] = Map.empty
): ReadableModelProperty[FileUploadModel] =
upload(fieldName, Seq(file), extraData = extraData, additionalRequestHeaders = additionalRequestHeaders)

/** Uploads provided `files` in a field named `fieldName` with optional custom request headers. */
/** Uploads provided `files` in a field named `fieldName` with optional additional request headers. */
def upload(
fieldName: String, files: Seq[File], extraData: Map[js.Any, js.Any] = Map.empty, additionalRequestHeaders: Map[RequestName, RequestValue] = Map.empty
): ReadableModelProperty[FileUploadModel] = {
Expand Down

0 comments on commit 35b206e

Please sign in to comment.