-
Notifications
You must be signed in to change notification settings - Fork 848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[azblob] file upload validation #20092
Comments
Hi @vijayrajah. Thank you for your feedback and we will look into it soon. Meanwhile, feel free to share your experience using the Azure SDK in this survey. |
Hi @vijayrajah ! If it is possible, could you please provide your code from start to finish? |
Here is the function that does the upload
There are other funcs in the code. This is the one that does the upload
Let me know if you need any additional info. |
Thanks for sharing this! What is the size of your file that is being uploaded? |
@siminsavani-msft -- it varies from few MB's to few 10's of GB (depending on the app ). At this time I'm doing a POC for upload validation. It is important for us to validate the upload |
I believe I was able to catch the bug. I will update this thread with a PR soon. Thanks! |
Hi @vijayrajah ! Sorry for the late update. As I was working on the checksums in azblob package, I realized that We are planning on deprecating the options Thank you for reporting this issue! |
@siminsavani-msft -- how do we validate the file upload completed successfully? How do we validate the file checksum? |
@vijayrajah , I would recommend replacing UploadFile with Just as an FYI, this will likely not work after our next release as I am still working on cleaning up the Transactional checksums and we will be deprecating It won't be too much of a breaking change, just cleaner way to use MD5 and CRC64 checksums. I will update this thread once that happens! |
Bug Report
I'm trying to upload a file to azure storage (v2) using
github.com/Azure/azure-sdk-for-go/sdk/storage/azblob
it is not clear (at least to me ) how to do upload validation using MD5.
I have added this in code
I'm computing MD5 using
The Md5 from service and my locally computed MD5 do not match, but the upload still proceeds, when it should fail.
Am I missing something? is there a code sample that I can refer to?
The text was updated successfully, but these errors were encountered: