0

Is it possible to use the resize capability of Dropzone.js when uploading to Google Cloud Storage by using signed URLs?

I am able to upload an image to GCS by following the instructions here: Google Cloud Storage Signed URL Upload + Dropzone.js.

The problem is, since the upload has to be hijacked, the image transformation done by Dropzone.js is lost, beacause it apparently does not affect the file object I (xhr.)send. Is there a way to overcome this behaviour?

A.Queue
  • 1,549
  • 6
  • 21
JCampos
  • 31
  • 1
  • 5
  • This issue doesn't seem to be related to google-cloud-storage, as all the action is [not] happening in Dropzone.js library. I would also recommend you to paste here your code so that people can see directly what is happening. – A.Queue Sep 03 '18 at 09:54
  • An option I can think of is to use the `dataUrl` that dropzone generates on the `thumbnail` event to generate a new file with the resized image, and then replace the original file with this new resized file. – wallek876 Sep 05 '18 at 06:49

0 Answers0