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

Started by chris.black4 replies15 views
chris.blackOriginal post
#1

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?
chris.black
#3
  1. Can this be done in one step?
  2. if not how do we specify the file after it is grabbed from S3?
tim-kos
#4

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

kvzTransloadit team
#5

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