-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Dropzone client side resize with file upload to AWS pre-signed url #1840
Comments
@helzich Did you solve this? I have the same problem. |
@pkl, no, I have not, found a solution. I parked the problem for now. In case you find out more, please share :-) |
@helzich I will :) |
This worked for me:
|
@pkl, many thanks for sharing! This works for me too. In case you want to answer the same on https://stackoverflow.com/q/57418410/4556546 I will accept and upvote there, too. Thanks again! |
You could also override the process queue and implementing it in the thumbnail function instead: |
@joshmaines Thank you! In the meantime, Andrei Gherghe answered on https://stackoverflow.com/a/59121684/4556546, posting his analysis here for reference:
|
This seems to be a fixed issue now. You should mark as closed. :) |
I have not had much luck on https://stackoverflow.com/q/57418410/4556546, so trying here again.
I implemented image file upload to an AWS s3 bucket with dropzone. It creates a pre-signed url and ultimately sends the image file to s3. I cannot get this to work in combination with the client side image resizing dropzone provides.
For s3 upload to work properly, I had to override
sending
, as explained here #590. Otherwise, it would send form data and I would get the image wrapped in------WebKitFormBoundary...
This, from the link above is working:
However, I get problems when I try to combine the above approach with dropzone's client side image resize. As per the dropzone documentation, I specified:
Debugging the code, the resize functionality is called with the above settings. However, the
file
that arrives at sending is still the original file which has not been resized. I could not make out where the resized image would be stored.I tried to change
sending
as follows:However, the result from the call to
transformFile
is a blob and, while the result looks resized, it is also wrapped as a form.In summary, can I get the combination of resize with plain image upload to work, somehow? Is the resized image stored in a suitable place? Can my override of
sending
be changed to get this to function?The text was updated successfully, but these errors were encountered: