Uploading a file (PUT)
Use the PUT method to upload a file to Yandex.Disk.
To compress the file, add the following headers to the request:
The space limit available to the user on Yandex.Disk is checked both before and after uploading the file. If the limit has been exceeded, the service returns a response with the code 507 Insufficient Storage.
If the size of the file is too large to upload to Yandex.Disk, the service returns a response with the code 413 Entity too large.
The application uploads the readme.txt file to the /a/ directory on the user's Yandex.Disk.
The server should respond with the 100 Continue code, which permits uploading the request body. If the file was uploaded successfully, the following response is returned: