Skip to content

Commit

Permalink
make TUS capabilities configurable (#2136)
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek authored Oct 6, 2021
1 parent 67f39be commit 937db22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
5 changes: 5 additions & 0 deletions changelog/unreleased/configurable-tus-capabilities.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Make TUS capabilities configurable

We've fixed the configuration for the TUS capabilities, which will now take the given configuration instead of always using hardcoded defaults.

https://github.com/cs3org/reva/pull/2135
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,13 @@ func setCapabilitiesForChunkProtocol(cp chunkProtocol, c *data.CapabilitiesData)
c.Capabilities.Dav.Chunking = ""

// TODO: infer from various TUS handlers from all known storages
c.Capabilities.Files.TusSupport = &data.CapabilitiesFilesTusSupport{
Version: "1.0.0",
Resumable: "1.0.0",
Extension: "creation,creation-with-upload",
MaxChunkSize: 0,
HTTPMethodOverride: "",
}
// until now we take the manually configured tus options
// c.Capabilities.Files.TusSupport = &data.CapabilitiesFilesTusSupport{
// Version: "1.0.0",
// Resumable: "1.0.0",
// Extension: "creation,creation-with-upload",
// MaxChunkSize: 0,
// HTTPMethodOverride: "",
// }
}
}

0 comments on commit 937db22

Please sign in to comment.