I want to create a thumbnail while uploading an image. How can this be done? Is there an event that I can use?
There is an event, but I'm a much bigger fan of doing this on-request, and storing (caching) the result. We insert the image on the page with a URL to a thumbnail script, and pass the desired width as a querystring arg. Like this:
Then, we resize the image, cache the result (the key is an MD5 hash of the querystring arguments), and return the image. Future requests access the same image.
Thanx, but what event is it?
We used these two:
In Visual Studio, type...
...and Intellisense will give you a bunch of them. There are about a dozen.
A bit late, but you should handle:UnifiedFile.UnifiedFileChangedUnifiedDirectory.UnifiedFileAdding
In additon to those Deane mentions above.