Commit f84236f
committed
Add optional Content-Location response header
... to inform the Client about the permanent location of completed
uploads.
This is motivated by the following use cases:
* TUS servers may not implement storage themselves, such that the
`Location` returned for a creation (POST) request be only
transitional.
* TUS servers may decide to change the storage location once the upload
is complete, for example to
* implement content-based naming (where the file name is some hash
over the content)
* name content based on type
* or select paths by size
The `Content-Location` header is already defined by the HTTP RFCs, so,
stricly speaking, its use should be implicitly allowed and well defined.
Yet, for TUS, it makes sense to allow use of this response header for
additional HTTP verbs (e.g. `PATCH`) and it might help implementation
interoperability to point it out.1 parent 5646c29 commit f84236f
1 file changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
144 | 145 | | |
145 | 146 | | |
146 | 147 | | |
| |||
191 | 192 | | |
192 | 193 | | |
193 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
194 | 204 | | |
195 | 205 | | |
196 | 206 | | |
| |||
0 commit comments