File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed
opencloudApp/src/main/java/eu/opencloud/android/workers
opencloudComLibrary/src/test/java/eu/opencloud/android/lib/resources/files/tus Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1+ Subproject commit 6c92c9d219641765081d667e9b925d0cd75a61d7
Original file line number Diff line number Diff line change @@ -84,6 +84,19 @@ class TusUploadHelper(
8484 mimetype = mimeType,
8585 metadata = metadata,
8686 useCreationWithUpload = true ,
87+ firstChunkSize = firstChunkSize,
88+ tusUrl = " " ,
89+ collectionUrlOverride = collectionUrl,
90+ ).execute(client)
91+ }
92+
93+ if (creationResult == null ) {
94+ throw java.io.IOException (" TUS: unable to create upload resource for $remotePath " )
95+ }
96+
97+ tusUrl = creationResult.uploadUrl
98+ createdOffset = creationResult.uploadOffset
99+ val metadataString = metadata.entries.joinToString(" ;" ) { (key, value) -> " $key =$value " }
87100
88101 transferRepository.updateTusState(
89102 id = uploadId,
Original file line number Diff line number Diff line change @@ -123,7 +123,6 @@ class TusIntegrationTest {
123123 assertNotNull(creationResult)
124124 val absoluteLocation = creationResult!! .uploadUrl
125125 val offset = creationResult.uploadOffset
126-
127126 println (" absoluteLocation: $absoluteLocation " )
128127 println (" locationPath: $locationPath " )
129128 println (" endsWith: ${absoluteLocation.endsWith(locationPath)} " )
You can’t perform that action at this time.
0 commit comments