Skip to Content

set default file for htmlb:fileUpload ?

I use htmlb:fileUpload to let the user select a file from the file system.

Is it possible to write a start value into the textbox??

For example, I'd like to write "C:\Windows\text.txt" into the inputField when the page is first shown.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Feb 21, 2005 at 07:11 PM

    No. See weblogs of Craig on this topic as well. This has been discussed number of times here.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 22, 2005 at 10:23 AM

    <i>> I'd like to write "C:\Windows\text.txt"</i>

    In short words: this is not allowed because it is not secure.

    Nobody but user itself can changer something in the file upload control.

    Consider the example

    <fileupload default="C:\Windows\passwords.etc">

    and autosubmit 😊

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.