Re: How to reset instance of AjaxUploader

  •  02-20-2012, 4:42 AM

    Re: How to reset instance of AjaxUploader

    Hello,
     
    I just did as you suggested and created a sample web site to illustrate the problem, and managed to see an exception that gets thrown (in the original project it somehow is being gobbled up somewhere):
    The process cannot access the file 'C:\Users\farinhaa\AppData\Local\Temp\AjaxUploaderTemp\persisted.4e6a5843-f49c-4557-8b44-eab340cfe3ad.fake-image.gif.resx' because it is being used by another process.
    Here's a .zip with the website (not that I've omitted the .lic file). It also includes the files used to test:
     
    These are the steps taken to replicate:
    1. Upload fake-image.gif (this is a word .docx with its extension changed to .gif - used to test uploads of invalid images)
    2. After this upload a valid image. The Exception above is thrown
     
    It's also worth noting that uploading the other invalid image (fake-image-zero-bytes.jpg) also triggers the invalid image event, but uploading a valid image right after that doesn't cause the exception.
     
    The problem of the failed upload's image name showing up occurs every time. 

    António Farinha
    http://antoniofarinha.com
View Complete Thread