|
Rank: Advanced Member Groups: Member
Joined: 6/5/2007 Posts: 76
|
The AJAXUploader event seems to get called twice with autopost back enabled.
Example: I set auto upload and auto postback enabled. The uploader is inside a Wizard
In the Uploader event I have code that copies the file from temp to destination and rename the file.
Note, I do not use the FinalFileLocation property because I have to rename the file
The file is uploaded and form posted back, the file is copied from Temp to destination and gets renamed.
However when I first click the NEXT button on the wizard, the uploader event gets fired a second time! Subsequent Previous/Next button presses does NOT call the event a third time.
Am I doing something wrong?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi,
That appears to be a problem. We will look into it and get back to you as soon as possible.
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 6/5/2007 Posts: 76
|
Thanks
The result is that I get the same file copied twice, and as I'm using a method to generate a unique file name I end up with two files in the destination not one. I didn't notice this before because I wasn't using unique file names so I guess it was still happening but it was just overwriting it with the same file of the same name.
I hope there is a fix for it as I can't think or a way around me not doing it this way.
|
|
Rank: Advanced Member Groups: Member
Joined: 6/5/2007 Posts: 76
|
If it is a bug, would be you able to give a rought ETA for the fix? Days, weeks, or months as I need to decide to either wait for the fix or do things in a different way.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,221
|
Hi,
We have not confirmed it is a bug yet. But we are hopping to close the issue this week, which means either an explanation, a fix, or workaround would be available.
Thanks
|
|