CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Exception if file already exists

by assapan » 06 Oct 2014 12:41

Hi,
if i upload a file twice for example an exception is thrown "'Filename "%s" already exists in upload folder!',[FileName]"
how can i trap this ? , Onerror event is not called.
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Alexander Bulei » 06 Oct 2014 14:08

Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3637
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by assapan » 06 Oct 2014 14:22

Hi,
This setting will accept or not to override a file but if i canoverride=false and user send a same name file , i have an exception but i cannot trap it and the fileuploadcomplete .event is fired !
Want to visit Ardeche http://leclosdelarc.fr/index.php
The Pont d’Arc Cavern http://en.cavernedupontdarc.fr
Image
User avatar
assapan
 
Posts: 600
Joined: 16 Dec 2013 12:04
Location: France

by Jorge Sousa » 06 Oct 2014 14:54

Hi

You can use OnGetFileName
Best Regards
CGDevTools Develop / Support Team
Home Page: http://www.cgdevtools.com
Jorge Sousa
 
Posts: 4261
Joined: 17 May 2012 09:58


Return to JQFileUpload

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.