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

radUpload.SaveAs or File.Move?

1 Answer 87 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Samwise
Top achievements
Rank 1
Samwise asked on 25 Feb 2009, 11:55 AM
Hello,

I am using the latest RadUpload Ajax control (Q3 2008).
I wonder if I am allowed to do a File.Move (faster) instead of a radFile.SaveAs in an exemple such as this one:

     string fullFileName = radfile.GetName() + Guid.NewGuid().ToString("N");  
 
     try    
     {    
          File.Move(radfile.GetName(), fullFileName);     
     }     
          catch(IOException ioe)     
     {     
          radfile.SaveAs(fullFileName);     
     }    

Best regards,
Sam

1 Answer, 1 is accepted

Sort by
0
Accepted
Genady Sergeev
Telerik team
answered on 25 Feb 2009, 04:51 PM

Hi Samwise,

We have changed the architecture of the upload. Now it is built on the top of the standard input-file, thus .NET framework is dealing with the tempfiles, so one don't have access to them. Unfortunately it is not possible to use File.Move anymore.

Sincerely yours,
Genady Sergeev
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
Upload (Obsolete)
Asked by
Samwise
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or