how do I access the HttpPostedFile file properties working with asyncUpload

0 Answers 104 Views
AsyncUpload
Edward
Top achievements
Rank 1
Edward asked on 02 Nov 2022, 08:02 PM
having not possible to convertTelerik.Web.UI.RadUploadContext.Current.UploadedFiles[0] from the collection  how do I access the HttpPostedFile file properties of that async upload process anyways?  It seems like its impossible to find such a way. how can I keep the full filepath of HttpPostedFile ? 
Rumen
Telerik team
commented on 07 Nov 2022, 12:11 PM | edited

Hi Edward,

Please refer to the following forum thread which explains why the full path is not provided by modern browsers and cannot be obtained: 

How to get full path using RadAsyncUpload control.

If your question is different, please provide more information, screenshots of the debugger, code snippets, and everything else that might help to understand it better.

 

Edward
Top achievements
Rank 1
commented on 07 Nov 2022, 12:21 PM

It sort of not satisfying answer to tell it won't work.  I am trying to fix something that seem to work yet in 2022 with that control, at least post a direction how can I use attachment column you provided in grid using that radasyncupload or other control to store the full path

 

Rumen
Telerik team
commented on 09 Nov 2022, 08:25 PM

I am afraid that modern browsers do not allow access to the file system on the client machine and it is impossible to obtain the full path. There is nothing new and the information in the provided forum is up-to-date and accurate. Browsers simply do not let JavaScript touch or know about the file system on the client and this includes paths to files the user chooses to upload.

No answers yet. Maybe you can help?

Tags
AsyncUpload
Asked by
Edward
Top achievements
Rank 1
Share this question
or