Technical support This forum is closed.
Version 1.x > Technical support > Deleting files from the web server (C# 2003 - v1.8c) View modes: 
User avatar
Member
Member
ta5ae - 4/11/2006 2:05:05 PM
   
Deleting files from the web server (C# 2003 - v1.8c)
When you delete a file from the CMS, ad subsequently try to upload a file with the same name in he same location you receive this error:

"...The file of that name already exists. Please choose some other name..."

It would appear that the file is not deleted from the web server.

We are usign the C# 2003 - 1.8c version with these options: CMSStoreFilesInDatabase is true and we are using the default workflow for Files.


User avatar
Guest
admin - 4/11/2006 5:33:40 PM
   
Re: Deleting files from the web server (C# 2003 - v1.8c)
Hello,

could you please check if the file persists on the disk? Also, did you "delete" the file or "destroy" it? If you only "delete" it, it stays on the disk, so that it can be restored later.

Thank you.

Best Regards,

User avatar
Member
Member
ta5ae - 4/11/2006 5:46:38 PM
   
Re: Deleting files from the web server (C# 2003 - v1.8c)
I had only deleted the file, not destroyed it. This message is not shown if the file is destroyed and the item is removed from the web server.

Should I advise users to restore the File from their dustbin, where possible and edit this file instead or trying to create a file with the same name & location as a previously deleted file?

Is this a feature or behaviour which might be tweaked it the feature?

User avatar
Guest
admin - 4/11/2006 7:19:54 PM
   
Re: Deleting files from the web server (C# 2003 - v1.8c)
Yes, they need to restore the file and update it (or - better - not delete it and update it instead). We will consider improving this in Kentico CMS 2.0.

Best Regards,