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

UploadPaths validation bug

2 Answers 47 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Philipp Becker
Top achievements
Rank 2
Philipp Becker asked on 12 May 2009, 08:37 PM
Hi,

it seems as if there is a bug in the current upload routine. The method CheckWritePermissions in RadFileExplorer.cs does a validation that will always fail for subfolders of a given uploadpath.

In line 905 where it says
&& uploadFolder[uploadPath.Length] == pathSeparator 

it should rather be
&& uploadFolder[uploadPath.Length -1] == pathSeparator 

otherwise this method will always return false when you're uploading into a subfolder of a given uploadpath string.

2 Answers, 1 is accepted

Sort by
0
Philipp Becker
Top achievements
Rank 2
answered on 12 May 2009, 09:09 PM
Nevermind, I figured that if I make sure that the uploadpath string does not end with a "/" then it seems to work as expected.
0
Fiko
Telerik team
answered on 13 May 2009, 02:26 PM
Hi Philipp,

This issue is already fixed, and the changes will be available in the next service pack which is scheduled for the end of May.

Regards,
Fiko
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
FileExplorer
Asked by
Philipp Becker
Top achievements
Rank 2
Answers by
Philipp Becker
Top achievements
Rank 2
Fiko
Telerik team
Share this question
or