Skip to content

Commit

Permalink
[LEIP-206] Add support for WebDav Upload
Browse files Browse the repository at this point in the history
Add filename to uploadFile
  • Loading branch information
hb0 authored Mar 23, 2024
2 parents 2e92563 + 985994f commit 4a99f73
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 4a99f73

Please sign in to comment.