views:

178

answers:

1

similar 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!

+1  A: 

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

Ionut Staicu
Thanks for that. How about a way to only be able to rotate image before upload? I guess that's still client side... ugh, wish HTML5 was the standard now!
Chad
Well... About rotate: you can rotate with js but i guess only in 45° steps (in order to be cross browser).However, you can try either a flash thing or serverside processing.
Ionut Staicu