-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use chunk size and method override from caps
Use the chunk size from the capabilities if it is higher than the locally configured one. Use HTTP method override mode if the TUS capabilities says so.
- Loading branch information
Vincent Petry
committed
Jun 2, 2020
1 parent
049af2a
commit 1b852fb
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Enhancement: Use TUS settings from capabilities | ||
|
||
The TUS settings advertise the maximum chunk size, so we now use the smallest chunk size from | ||
the one configured in config.json and the one from the capabilities. | ||
|
||
If the capabilities report that one should use the X-HTTP-Override-Method header, | ||
the upload will now use a POST request for uploads with that header set | ||
instead of PATCH. | ||
|
||
https://github.com/owncloud/ocis-reva/issues/177 | ||
https://github.com/owncloud/phoenix/pull/3568 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters