I need to import a file from s3. Maybe it is obvious but I don't see how.

Started by Ian4 replies10 views
IanOriginal post
#1

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

Hi,

I need to store originals on s3 along with resizes. Sometimes I want to crop out a portion of an original I stored on s3. How can I “import” the file from s3 to transloadit to resize it and then store that resized copy as a new image on s3? I understand everything except what to feed to the resize bot in order to get the original.

Thanks,

-Ian

tim-kos
#2

Hey Ian,

you would set up two steps.

The first would use the “/http/import” robot to which you feed your url. The second step would then be your resize stop using the “/image/resize” robot. Give it a “use” parameter that contains the name of the “import” step.

Let me know if that helps or if you need an example.

Kind regards,
Tim

Ian
#3

Hi Tim,

Just to clarify, for certain reasons I’m using a private repository. I think I can sign urls with the s3 sdk and submit that to override the url in the http/import step but it sure would be convenient to not do that. Is that a necessary work-around?

Thanks for your time,

-Ian

tim-kos
#4

Hi Ian,

well we just access these files via CURL similar to how an external user would access them. So I am pretty sure you cannot get around the signing process.

In the future we might enhance the import robot so that it can do the signing for you. But currently he can’t do it. : /

Sorry for the inconvenience.

Kind regards
Tim

Ian
#5

Well I originally hadn’t thought about signing a url so I’m farther ahead now. Will try it out soon. Thanks for all the help.

-Ian