NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: Robert Iliuta on February 24, 2011, 03:02:44 AM
-
Hallo,
Is there a way to cancel an upload file? If I check on RenameFile embed the file and if it's not the extension we want how to cancel the upload?
Thank you,
Robert
-
Robert,
I would think go to the ClientSide tab, check send new value to server, check the extension in the server code embeds and add the file name to the reset fields.
Cheers
Charl
-
Hi Robert,
>> Is there a way to cancel an upload file? If I check on RenameFile embed the file and if it's not the extension we want how to cancel the upload?
The only any to cancel the upload would be to close the connection to the browser. Which means an error page would appear on the browser, which is probably not a good idea. I'm not aware of any pre-emtive message you can send the browser saying "hey, you're sending me a big file, but please stop..."
Of course, by the time you've got to the RenameFile method the whole file has already arrived, so that wouldn't be the place to do it anyway.
Cheers
Bruce