This is a migrated thread and some comments may be shown as answers.

Alert on 'file exists' is multiplied with the number of uploads

1 Answer 113 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Jan Hansen
Top achievements
Rank 1
Jan Hansen asked on 10 Aug 2010, 02:07 PM
When I use the fileupload, the control alerts the 'file already exists' message for each attempted file upload. That is, when the overwrite checkbox has not been checked. You upload three files that exists, and it tells you three times that the file exists. ("file already existsfile already existsfile already exists"). Is there some way I can make it say 'File(s) already exist' just once?

Then I tried the one online at the telerik site and i just says 'page not found' when I upload a file that's on the site already.

Finally I tried my local version, the demos installed on my machine and it will not allow me to upload. I assume it's a file access-issue, but I've googled it and tried setting full access for several (the obvoius system asp.net ones) of my users, but I can't seem to find the right one. Anyone who knows which user to allow (II7.5 - Windows 7 - .Net4)?

1 Answer, 1 is accepted

Sort by
0
Fiko
Telerik team
answered on 13 Aug 2010, 10:42 AM
Hi Jan,

In reference to your questions:

  • The message is shown for every uploaded file. This is by design, however, and cannot be changed. in your case I recommend you to use the OnItemCommand event of the RadFileExplorer control and manually perform a check whether the file already exists. Then output a message box which shows the information. Please note that, the ItemCommand will be called for every uploaded file as well, so you need to add a flag which will indicate that the method is already called. Using this flag, you can register the JavaScript alert box only ones.
  • The Upload feature throws a security exception in the online demos because of lack of write permission. This is why the page shows "Page not found". We will fix this issue however in order to show the actual message instead of "Page not found" one.
  • The demos should work locally. You can quickly test the demos by running them in Cassini. Visual Studio's web server runs with FullPermission and does not require any additional setup.
    In case that you want to run the demos in IIS, you need to make sure that the user, which is assigned to the application pool, has Read/Write permissions set to the folder where you need to upload files.

I hope this helps.

Best wishes,
Fiko
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
FileExplorer
Asked by
Jan Hansen
Top achievements
Rank 1
Answers by
Fiko
Telerik team
Share this question
or