1

We are creating a RESTfull file service to do file operations in Azure File storage. We cannot upload a file more than 4MB. We tried to disable MD5Validation. But we didn't get proper documentation for that.

How can we upload more than 4MB file? How can we disable MD5Validation while uploading a file?

Reference:

https://msdn.microsoft.com/en-us/library/azure/dn194276.aspx

2
  • 3
    Please share your code and also the error you're getting. Dec 1, 2015 at 8:01
  • Similarly, what language are you using? Dec 1, 2015 at 17:48

1 Answer 1

4

Are you trying to upload a range which is larger than 4MB? If so, please split the request into multiple requests as the API doc mentions:

For an update operation, the range can be up to 4 MB in size.

As for MD5 validation, if you don't specify the HTTP header Content-MD5, the server won't validate it.

Optional. An MD5 hash of the content. This hash is used to verify the integrity of the data during transport. When the Content-MD5 header is specified, the File service compares the hash of the content that has arrived with the header value that was sent. If the two hashes do not match, the operation will fail with error code 400 (Bad Request).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.