NetTalk Central

Author Topic: Cancel upload  (Read 3337 times)

Robert Iliuta

  • Sr. Member
  • ****
  • Posts: 472
    • View Profile
    • Email
Cancel upload
« 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

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Cancel upload
« Reply #1 on: February 24, 2011, 06:16:12 AM »
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

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Cancel upload
« Reply #2 on: February 24, 2011, 07:30:28 AM »
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