Applications need to call this API before users can upload files. Users will use the results of this API to do a direct file upload.
For more details about the upload process take a look at the File Upload Process sequence diagram.
Input
URL:
/seeker/file/upload/token
HTTP Method(s):
GET
Parameters
Parameter |
Required |
Default |
Description |
Key |
Yes |
N/A |
Unique key identifying the uploaded file. The key should include a random path segment ensuring it is unique. This key will be used to create a directory path under which the uploaded file will be stored. Example: 2014/01/Case/1234/random-ksdfj213kdj87 Note: It is beneficial to attempt to keep directory trees shallow to avoid file performance problems when many files are all put into one directory. |
FileName |
Yes |
N/A |
Name of the file to be uploaded. |
Timeout |
No |
5 minutes |
How long should the upload token be valid. |
Response:
Parameter |
Description |
ActionURL |
URL to which the file should be posted |
Token |
Upload permission token which should be posted with the file upload. |
Examples
Request:
GET /seeker/file/token?Key=2015/01/case/1234/random-123456abcdedf&FileName=upload.log
Response:
{
ActionURL: "http://localhost/seekerproxy/file/upload/"
Token: "biglongrandomtokenstring"
}
See Also |
Next |