Manual File Name Entry

Thread is closed for posting
4 posts, 1 answers
  1. Mick
    Mick avatar
    40 posts
    Member since:
    Oct 2006

    Posted 07 Feb 2012 Link to this post

    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
  2. Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 07 Feb 2012 Link to this post

    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 >>
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Mick
    Mick avatar
    40 posts
    Member since:
    Oct 2006

    Posted 07 Feb 2012 Link to this post

    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.
  5. Answer
    Kevin
    Kevin avatar
    360 posts
    Member since:
    Jul 2012

    Posted 07 Feb 2012 Link to this post

    Hello Mick,

    What you're trying to do is not possible, as it's restricted by the browser.
Back to Top