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

Manual File Name Entry

3 Answers 53 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Mick
Top achievements
Rank 1
Mick asked on 07 Feb 2012, 11:54 AM
Hi

I am writing a web appication rather than a web site so I have information available to me that I would not normally know.
For instance in this case, I have got 4 files on a client disk - 3 images and 1 video.

On the web page I already know where the files are stored and what the filenames are before I draw the page.
All I want to do is to pre-populate the 4 radupload edit boxes with the filenames amd paths so that all the user has to do when they open the page is to click the Upload button and all 4 files can then be uploaded.

I cannot find any obvious way to do this with the radupload control?

Can anybody steer me in the right direction here?

Thanks
Mick

3 Answers, 1 is accepted

Sort by
0
Bozhidar
Telerik team
answered on 07 Feb 2012, 06:15 PM
Hello Mick,

Due to safety issues, this is not supported in our Upload controls. The selection of a file has to be done by a user, and not by code. 
 
Greetings,
Bozhidar
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Mick
Top achievements
Rank 1
answered on 07 Feb 2012, 06:27 PM
Hi Bozhidar

I understand the security implications of this and I do fully understand the reasons why.

What I am proposing is to show the user the filename that I will be uploading in your control and only after clicking the upload button (after the user has visually ok'd the file) will it upload.

Is this something that you have blocked at your component level or is this a restriction set in the client browser upload facility?

For instance if it is blocked in your compnent then this gives me hope that I can write a way of doing the whole upload process myself (I understand this will not be easy but hey, programming is all about the next challenge)

I could alternativeley turn to acivex or java of course but I hate both these alternatives for numerous reasons.

Thanks.
Mick.
0
Accepted
Kevin
Top achievements
Rank 2
answered on 07 Feb 2012, 08:22 PM
Hello Mick,

What you're trying to do is not possible, as it's restricted by the browser.
Tags
Upload (Obsolete)
Asked by
Mick
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Mick
Top achievements
Rank 1
Kevin
Top achievements
Rank 2
Share this question
or