POST
https://vikingfile.com/api/get-upload-url
Parameters
size
(required) - size of file to upload in byte.{ 'uploadId' => 'ANWA...SE1M', 'key' => 'rZ2h9ZqVQi', 'partSize' => 1073741824, 'numberParts' => 3, 'urls' => [ "https://upload.vikingfile.com/rZ2h9ZqVQi?partNumber=1&uploadId=ANWA...", "https://upload.vikingfile.com/rZ2h9ZqVQi?partNumber=2&uploadId=ANWA...", "https://upload.vikingfile.com/rZ2h9ZqVQi?partNumber=3&uploadId=ANWA..." ] }
PUT
url returned by https://vikingfile.com/api/get-upload-url
Get part's ETAG from headers
POST
https://vikingfile.com/api/complete-upload
Parameters
key
(required)uploadId
(required)parts
(required) - parts[0][PartNumber]=1&parts[0][ETag]=51887c42e7e3ec990574e8fc546faae5....name
(required) - filename.user
(required) - user's hash. Empty for anonymous upload.{ "name": "example.txt", "size": 12345, "hash": "TPRSfLvcIu", "url": "https://vikingfile.com/f/TPRSfLvcIu" }
GET
https://vikingfile.com/api/get-server
{ "server": "https://upload.vikingfile.com" }
POST
server returned by https://vikingfile.com/api/get-server
Parameters
file
(required)user
(required) - user's hash. Empty for anonymous upload.{ "name": "example.txt", "size": 12345, "hash": "TPRSfLvcIu", "url": "https://vikingfile.com/f/TPRSfLvcIu" }
POST
server returned by https://vikingfile.com/api/get-server
Parameters
link
(required)user
(required) - user's hash. Empty for anonymous upload.name
(optional) - new filename.{ "name": "example.txt", "size": 12345, "hash": "TPRSfLvcIu", "url": "https://vikingfile.com/f/TPRSfLvcIu" }
POST
https://vikingfile.com/api/delete-file
Parameters
hash
(required) - hash file, exemple : TPRSfLvcIuuser
(required) - your user's hash{ "error": "success" }
POST
https://vikingfile.com/api/rename-file
Parameters
hash
(required) - hash file, exemple : TPRSfLvcIuuser
(required) - your user's hashfilename
(required) - new filename{ "error": "success" }
POST
https://vikingfile.com/api/check-file
Parameters
hash
(required) - hash file, exemple : TPRSfLvcIu{ "exist": true, "name": "example.txt", "size": 12345, }