Get upload url

POST https://vikingfile.com/api/get-upload-url

Parameters

Response
{
 '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..."
                     ]
}





Upload each part file

PUT url returned by https://vikingfile.com/api/get-upload-url

Response

Get part's ETAG from headers






Complete upload

POST https://vikingfile.com/api/complete-upload

Parameters

Response
{
 "name": "example.txt",
 "size": 12345,
 "hash": "TPRSfLvcIu",
 "url": "https://vikingfile.com/f/TPRSfLvcIu"
}





Get upload server

GET https://vikingfile.com/api/get-server

Response
{
 "server": "https://upload.vikingfile.com"
}





Upload file (legacy)

POST server returned by https://vikingfile.com/api/get-server

Parameters

Response
{
 "name": "example.txt",
 "size": 12345,
 "hash": "TPRSfLvcIu",
 "url": "https://vikingfile.com/f/TPRSfLvcIu"
}





Upload remote file

POST server returned by https://vikingfile.com/api/get-server

Parameters

Response
{
 "name": "example.txt",
 "size": 12345,
 "hash": "TPRSfLvcIu",
 "url": "https://vikingfile.com/f/TPRSfLvcIu"
}





Delete file

POST https://vikingfile.com/api/delete-file

Parameters

Response
{
 "error": "success"
}





Rename file

POST https://vikingfile.com/api/rename-file

Parameters

Response
{
 "error": "success"
}





Check file

POST https://vikingfile.com/api/check-file

Parameters

Response
{
 "exist": true,
 "name": "example.txt",
 "size": 12345,
}