How do we import a file from S3 and still use out template for conversion?

Archived from the Transloadit support forum. Originally posted on March 28, 2014; details may be outdated, see our docs for current behavior. Original thread

We currently post files directly when using transloadit but have some uploads that are stored directly in S3. We want to simply tell the api whee the file is on S3 and run the template on that file instead of uploading the file directly (and then running the template).

  1. Can this be done in one step?
  2. if not how do we specify the file after it is grabbed from S3?

Hey Chris,

you could either use our /http/import robot in case the S3 URLs are publicly available: https://transloadit.com/docs/conversion-robots#http-import

Or you could use our /s3/import robot: https://transloadit.com/docs/conversion-robots#s3-import

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

  1. Can this be done in one step?
  2. if not how do we specify the file after it is grabbed from S3?

Yes you can pipe one step into another. First grab the file from S3, then “use” the import step as your import to your conversion step.

Here is an example using our jQuery plugin, but this works as well just with JSON in a template: https://transloadit.com/demos/misc/import-a-file-over-http

Please let me know if this helps.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Hi,

I’m closing this ticket due to inactivity. But if you require more assistance on this issue please feel free to reopen!

Kind regards,
Kevin