I have a strange problem!
When I upload via the windows explorer upload facility on 4 out 60 directories it does not upload the files.
The directories are all created via Directory.Create();
The 4 directories that are in question are not the longest file names, but all have similar names, they are:
Safari Bella Leopard
Safari Bella Zebra
Safari Tall Leopard
Safari Tall Zebra
yet the file names:
Safari Short Zebra Collection
Safari Short Leopard Collection
work fine and more interestingly I can create the dummy file "blah.txt" (as you can see in the code below) in the directories that are having the issues.
Below is the code I use
I hope someone has some ideas on this... I have exhausted all of mine ((
Thanks in advance :)
When I upload via the windows explorer upload facility on 4 out 60 directories it does not upload the files.
The directories are all created via Directory.Create();
The 4 directories that are in question are not the longest file names, but all have similar names, they are:
Safari Bella Leopard
Safari Bella Zebra
Safari Tall Leopard
Safari Tall Zebra
yet the file names:
Safari Short Zebra Collection
Safari Short Leopard Collection
work fine and more interestingly I can create the dummy file "blah.txt" (as you can see in the code below) in the directories that are having the issues.
Below is the code I use
<
telerik:RadFileExplorer
ID
=
"RadFileExplorer1"
Runat
=
"server"
Width
=
"600px"
EnableAsyncUpload
=
"True"
EnableCreateNewFolder
=
"False"
ExplorerMode
=
"Thumbnails"
VisibleControls
=
"Toolbar, ContextMenus, FileList"
AvailableFileListControls
=
"Thumbnails"
Skin
=
"Office2010Blue"
>
<
Configuration
EnableAsyncUpload
=
"True"
SearchPatterns
=
"*.*"
/>
</
telerik:RadFileExplorer
>
string
physicalPath = Directory.GetParent(Server.MapPath(
""
).ToString()).ToString() +
"\\Product Images\\" + Request.QueryString["
id"].ToString();
if
(!Directory.Exists(physicalPath))
{
try
{
Directory.CreateDirectory(physicalPath);
}
catch
(Exception ex) { RadAjaxManager1.Alert(Misc.CleanForDatabase(ex.Message)); }
}
try
{
File.CreateText(physicalPath +
"/blah.txt"
);
}
catch
(Exception ex1) { RadAjaxManager1.Alert(ex1.Message); }
string
[] relativePath =
new
string
[] {
"~/Product Images/"
+ Request.QueryString[
"id"
].ToString() +
"/"
};
RadFileExplorer1.Configuration.UploadPaths = relativePath;
RadFileExplorer1.Configuration.DeletePaths = relativePath;
RadFileExplorer1.Configuration.ViewPaths = relativePath;
RadFileExplorer1.Configuration.MaxUploadFileSize = 10485760;
I hope someone has some ideas on this... I have exhausted all of mine ((
Thanks in advance :)