3 Answers, 1 is accepted
0
Hi Andrea,
Yes, you can modify the file on the client side before sending it. The easiest way to do this is to handle the FileUploadStarting event. There you have the original file and you can choose what the actual uploaded stream will be by setting the NewFilestream property.
Greetings,
Miroslav
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Yes, you can modify the file on the client side before sending it. The easiest way to do this is to handle the FileUploadStarting event. There you have the original file and you can choose what the actual uploaded stream will be by setting the NewFilestream property.
void upload_FileUploadStarting(object sender, FileUploadStartingEventArgs e) |
{ |
var selectedFile = e.SelectedFile.File; |
// set the new file steam to whatever you like: |
//e.NewFileStream = .... |
} |
Greetings,
Miroslav
the Telerik team
Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Gurpreet Singh
Top achievements
Rank 1
answered on 17 Oct 2012, 06:41 AM
Hi,
I am using RadUpload.
I just want to access file content on client side.
Can I use RadUpload control without setting UploadServiceUrl (without handler file) ?
How can use RadUpload control on client side only to access file content ?
Thanks,
Gurpreet
I am using RadUpload.
I just want to access file content on client side.
Can I use RadUpload control without setting UploadServiceUrl (without handler file) ?
How can use RadUpload control on client side only to access file content ?
Thanks,
Gurpreet
0
Hi Gurpreet,
The RadUpload control is designed to allow you to easily select and upload files on a server. This is why in your case, it might be better to use the OpenFileDialog to open a file on the client and manipulate it as you need to.
All the best,
Tina Stancheva
the Telerik team
The RadUpload control is designed to allow you to easily select and upload files on a server. This is why in your case, it might be better to use the OpenFileDialog to open a file on the client and manipulate it as you need to.
All the best,
Tina Stancheva
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.