Archived from the Transloadit support forum. Originally posted on May 15, 2011; details may be outdated, see our docs for current behavior. Original thread
Hi there, I’m wondering if this is possible. I have an assembly which has the image and video robots to do conversions. The assembly is used in an upload form which can be used to upload anything, e.g. PDFs. I’d like to store the robot output and not the original when the upload is an image or video, but when the upload is neither an image nor a video I’d like to store the original. It seems like I always have to store the original though. Is that indeed the case? If it helps, the template I am playing with is REDACTED.
There is a workaround. Create a template that never stores the original file. When you get our notification from an upload, we provide you with an ‘uploads’ array which contains a temporary url to the uploaded files. You can use that to create a second request from your server which uses our '/http/import' robot to import the original file from it’s temporary url, and store it using a storage robot.
We hope to have a more convenient way for this is in the future, but for the meantime this should be a usable workaround.