Archived from the Transloadit support forum. Originally posted on October 19, 2010; details may be outdated, see our docs for current behavior. Original thread
I think the subject says it all.
Thanks
Archived from the Transloadit support forum. Originally posted on October 19, 2010; details may be outdated, see our docs for current behavior. Original thread
I think the subject says it all.
Thanks
Yes, you can use our REST API and setup a http import step that gets the file from S3 (or any http url).
If you need help getting that going just let me know!
I’m sorry, all I see is a discussion about setting up assemblies. Do you have a REST sample that covers processing an image/video?
Thanks.
I’ll write up a little example that shows how to do this with curl, I’ll ping you here when it’s up.
Terrific; thank you.
since you’re taking the time to do this, it occurred to me that I should let you know what I’m after.
A user uploads a file to a specific, but varying, bucket and path. I need the file processed and then returned to a different, varying but specific path. I.e. I need to pass both the source and the destination as part of the rest call.
Thanks.
Sorry this took me so long, we were on a business trip this week so things were a little more busy than usual. Anyway here is a curl example that imports the google logo, resizes it, and stores it on Amazon S3. I think that should be easy to customize for your use case, but do not hesitate to follow up if I can do better : ).
curl -F 'params={"auth": {"key": "your-key"}, "steps": {"import": {"robot": "/http/import", "url": "http://www.google.com/images/logos/ps_logo2.png"}, "resize": {"robot": "/image/resize", "width": 100}, "store": {"robot": "/s3/store", "bucket": "your-bucket", "key": "your-key", "secret": "your-secret"}}, "blocking": true}' "http://api2.transloadit.com/assemblies"
Also let me know if I can help with anything else.
Btw. the "blocking": true part is optional, you can also use our "notify_url" parameter to get notified via HTTP once we finished your assembly. But the blocking is useful for short assemblies / easy testing via curl.
Closing this since the thread is inactive. Please feel free to re-open if there are still remaining problems!