comparison mod_http_upload_external/README.markdown @ 4556:c149edb37349

Fix mentions of 'Content-Size' (should be Content-Length) (thanks Roobre)
author Matthew Wild <mwild1@gmail.com>
date Sat, 08 May 2021 15:51:21 +0100
parents 16995e7624f0
children fba64b043c52
comparison
equal deleted inserted replaced
4555:1e70538e4641 4556:c149edb37349
157 157
158 #### Version 2 (v2) 158 #### Version 2 (v2)
159 159
160 The token will be in the URL query parameter 'v2'. If it is absent, fail with 403 Forbidden. 160 The token will be in the URL query parameter 'v2'. If it is absent, fail with 403 Forbidden.
161 161
162 | Input | Example |Read from | 162 | Input | Example |Read from |
163 |:--------------|:------------|:--------------------------------------------------------------------| 163 |:----------------|:------------|:--------------------------------------------------------------------|
164 |`file_path` | foo/bar.jpg | The URL of the PUT request, with the service's base prefix removed. | 164 |`file_path` | foo/bar.jpg | The URL of the PUT request, with the service's base prefix removed. |
165 |`content_size` | 1048576 | Content-Size header | 165 |`content_length` | 1048576 | Content-Length header |
166 |`content_type` | image/jpeg | Content-Type header | 166 |`content_type` | image/jpeg | Content-Type header |
167 167
168 The parameters should be joined into a single string, separated by NUL bytes (`\0`): 168 The parameters should be joined into a single string, separated by NUL bytes (`\0`):
169 169
170 ``` 170 ```
171 signed_string = ( file_path + '\0' + content_size + '\0' + content_type ) 171 signed_string = ( file_path + '\0' + content_length + '\0' + content_type )
172 ``` 172 ```
173 173
174 ``` 174 ```
175 signed_string = "foo/bar.jpg\01048576\0image/jpeg" 175 signed_string = "foo/bar.jpg\01048576\0image/jpeg"
176 ``` 176 ```