URL: /api/authinfo/{token}
Method: GET
The Auth Info API is used for retrieving upload methods for use after creating a file with the File API. It is essential that the upload file name is the exact name returned by the File API.
Request Headers
token | An authorization token, from Auth API. The token must have upload capabilities. |
Response
available | A list of available upload methods. |
default | Default upload method. |
ftp |
Optional. Object containing information for uploading via Passive FTP(S), it contains the following values: server, port, ssl, username, password, and protocol. |
plupload | Optional. Upload using the plupload library. Object contains: server, chunk_size, max_file_size, and protocol. |
tus |
Optional. Upload using the TUS protocol. Object contains: server, chunk_size, max_file_size, and protocol. The TUS client must support creation extension and must set the filename metadata. Supported TUS extensions: creation, creation-defer-length, expiration, checksum, termination, and concatenation. |
max_file_size |
Integer. Max allowed file size in bytes. 0 means no limit. |
available_storage |
Integer. Storage left on account in bytes. |
Example:
{
"available": ["ftp", "plupload", "tus"],
"default": "ftp" "ftp": { "server": "ftp.iogates.com", "port": 21, "ssl": true, "username": "user", "password": "password", "protocol": "ftps" }, "plupload": { "server": "https://iogates.com/handlers/upload.php?token=a80d9be201", "chunk_size": 33554432, "max_file_size": 524288000, "protocol": "https" },
"tus": {
"server": "https://iogates.com/upload/tus/a80d9be201",
"chunk_size": 33554432,
"max_file_size": 524288000,
"protocol": "https"
},
"max_file_size": 524288000,
"available_storage": 29301996265 }