Skip to content

Commit

Permalink
Add filename to uploadFile
Browse files Browse the repository at this point in the history
  • Loading branch information
hb0 committed Mar 23, 2024
1 parent 2e92563 commit 985994f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/kotlin/de/cyface/uploader/DefaultUploader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class DefaultUploader(private val apiEndpoint: String) : Uploader {
metaData: RequestMetaData,
measurementId: Long,
file: File,
fileName: String,
progressListener: UploadProgressListener
): Result {
val endpoint = attachmentsEndpoint(measurementId)
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/de/cyface/uploader/Uploader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ interface Uploader {
* @param metaData The [RequestMetaData] required for the upload request.
* @param measurementId The id of the measurement the file is attached to.
* @param file The attachment file to upload via this post request.
* @param fileName How the transfer file should be named when uploading.
* @param progressListener The [UploadProgressListener] to be informed about the upload progress.
* @throws UploadFailed when an error occurred.
* @return [Result.UPLOAD_SUCCESSFUL] when successful and [Result.UPLOAD_SKIPPED] when the server is
Expand All @@ -70,6 +71,7 @@ interface Uploader {
metaData: RequestMetaData,
measurementId: Long,
file: File,
fileName: String,
progressListener: UploadProgressListener
): Result

Expand Down

0 comments on commit 985994f

Please sign in to comment.