Adds Automatic Support to Not Use Multipart Uploads If File Size <= partSize#387
Adds Automatic Support to Not Use Multipart Uploads If File Size <= partSize#387bikeath1337 wants to merge 8 commits intoTTLabs:masterfrom
partSize#387Conversation
… this option to `false` so that existing specs pass
…lete requests do not fire but the callbacks do
… when used for files of one part. This new class simply resolves its promise rather than make any requests
…bled and the file has only one part.
|
Hey @bikeath1337, so I found some time to try this out and plugged this branch into our code. However I am getting I'll try a simpler example to see if that works. EDIT: Yeah I seem to be getting the same for the simple example. Let me dig into it some other time again 😛 |
|
Hi, @jakubzitny , I'm back from being away... :) Any update on this? |
Hey there! I know this is SUPER old, but for anyone trying to do the same thing => I applied this changes to the evaporate lib in my project in order to improve performance a little bit and, hopefully, get rid of a sporadic bug in an already deprecated ( 😞 ) MinIO gateway, and I figured the The string to sign generator uses |
This would fix only AWS Signature V2. There is still an error for AWS Signature V4: As we are not signing the payload, we need to add proper header ( |
Thanks to @jakubzitny for #362.
This PR has not be tested yet, but specs pass (I will remove the WIP after doing more testing).
What this intends to do: Enhance Evaporate to avoid the overhead of using multipart uploads if the file size is equal to the part size. This option avoids two round trips to AWS (initiate and complete).
Description:
enablePartSizeOptimizationstarted,progressandcompletecallbacks should all be invokedcomputeContentMd5should be respectedChanges:
xhrparameter will beundefined.