mod_http_upload_external/README.markdown
changeset 4560 c149edb37349
parent 4513 16995e7624f0
child 5843 fba64b043c52
equal deleted inserted replaced
4559:1e70538e4641 4560: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 ```