I'm setting up a form where people will be able to submit photos for a contest. It uses Safecracker and the Safecracker file field to upload a single photo and related metadata with the photo going to a designated directory.
Works fine with smaller images, but chokes once it gets to about 4mb file size. Looks like it's running into the max CPU runtime. I imagine this problem will get worse as the # of entries in that directory increase.
I've been looking into addons for using Amazon S3, but it looks like these are more for file management from within the Control Panel, or integrated with edit forms...and that they leave copies of the images on the site's server. Is there a way to use Safecracker to upload directly to Amazon S3 so I just bypass this problem with the server choking?
Also, I'm trying to figure out the best way to make sure each title/photo has a unique name, and thought the cleanest way would be to append the entryID to each upon submission. Wondered if anyone had another solution. Duplicate photo names right now are getting the word "temp" added automatically, but that looks clunky.
Thanks!