How to develop a cross-browser, simplified photo uploader
similar开发者_如何学C to what is shown here.
I don't need total image editing... only rotation, maybe cropping. But the user being able to drag'n drop a photo and then minor editing is what I'm after. I'm sure there's a jQuery plugin for something like it. (preferably not an HTML5 solution)
However, I've refrained from using uploaders that use an ajax uploader, for this reason:
In my site, users can create ads to sell their goods. They can attach photos to show off those goods. If I allow ajax photo upload and then the user does not actually save the ad, how do I handle removal of photos that were ajax uploaded but no longer needed?
Or, what's stopping someone from ajax uploading multiple photos over and over, taking up space on my server?
I'm thinking some kind of daily process to nuke the stale photos, but that's a bit cludgy imo. I'm open to suggestions though. Thanks in advance!
You can use Gears. Few years ago I saw a Java applet which did that. I don't think there is a JS only solution.
Gears example
精彩评论