Question

Pre-Signed URL. Is possible to send fileUrl instead of actual file stream in request body?

Posted July 15, 2021 88 views
API

Hi, I want to store in DO images, that are firstly processed by optimization service. Steps:

  1. user chooses to upload an image via browser
  2. we’re sending the file to the 3rd party image optimizer (ImOpt)
  3. when file is process by ImOpt, it calls our endpoint with a json containing a url to optimized file
  4. our service now generates pre-signed url and uploads the optimized file to DO.

Is it possible to upload a file with presigned-url by sending just a url to the file instead of sending actual file in the request body?

If not, is there any other method to upload a file from another location (having only the fileurl)?

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!