| Dart Home | PowerWEB File Upload for ASP.NET | Custom Development | Reply | PowerWEB File Upload for ASP.NET Topics | Forums |
| Author | Forum: PowerWEB File Upload for ASP.NET Topic: File with the same name |
| haukurmar From: Reykjavik, Iceland Posts: 13 Member Since: 10/29/07 |
posted January 2, 2008 12:25 PM Let's take an example: We'll upload Water lilies.jpg In the FileUploadComplete event I get e.PostedFile.FileName as the same name But the e.PostedFile.SavedFilePath when the file exists I get the filename Water lilies.jpg.1 Is there a way I can intercept and change the name before it uploads to the folder? Or the other option overwrite the file that exists? |
John Talarico![]() From: Rome, NY USA Posts: 630 Member Since: 06/01/05 |
posted March 25, 2008 4:52 PM For the next release of File Upload, we have modified the UploadManager so the behavior can be customized. You will be able to choose between overwriting existing files, throwing an exception, or renaming the new file when a file already exists. Furthermore, you will be able to specify the renaming pattern to use. For more information on product updates, please contact jamie.powell@dart.com. ------ |
| smacca From: Sydney, Australia Posts: 6 Member Since: 02/26/08 |
posted January 21, 2009 12:09 AM Does the current latest version of FileUpload have overwrite filename functionality. |
K M Drake![]() From: Utica, NY USA Posts: 3406 Member Since: 07/14/00 |
posted January 21, 2009 1:26 PM Hi, Yes, as of version 1.1.6.1. You can see the release history here: http://www.dart.com/pwfileup_relhist.aspx See the UploadManager FileExistsBehavior and FileRenamePattern properties. -ken |
| Reply | PowerWEB File Upload for ASP.NET Topics | Forums |
This site is powered by
PowerTCP WebServer for ActiveX
|