Posted
on Feb 7, 2012
(permalink)
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
Reply
Bozhidar
Bozhidar
Posted
on Feb 7, 2012
(permalink)
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 >>
Reply
Posted
on Feb 7, 2012
(permalink)
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.
Reply
Answer
Kevin
Master
Posted
on Feb 7, 2012
(permalink)
Hello Mick,
What you're trying to do is not possible, as it's restricted by the browser.
Reply