Using the Replace dropzone, I successfully accessed the image using the onDrop . However, I am trying to upload to Amazon S3 by sending the image to my server, storing it in an S3 bucket and returning the signed URL to the client.
I cannot do this with the information that I have so far, and the documents do not seem to mention this as far as I know.
onDrop launches a function call in my reducex actions with files:
export function saveImageToS3 (files, user) { file = files[0]
However, when I get to my server, I'm not sure how to save this blob image (which is only referenced by the browser).
server.post('/api/image', (req, res) => { // req.body.preview --> blob:http://localhost:3000/1ds3-sdfw2-23as2 // req.body.file -> {preview:blob:http://localhost:3000/1ds3-sdfw2-23as2}, no other properties for some reason })
source share