INPUT TYPE="FILE" question

Results 1 to 2 of 2

Thread: INPUT TYPE="FILE" question

  1. #1
    Join Date
    Dec 1969

    Default INPUT TYPE="FILE" question

    I&#039;m trying to set the value of the input type file when viewed in the browser the box is blank. Here is an example of what I&#039;m trying to do. Does the value attribute not work?<BR>&#060;FORM METHOD="POST" action="upload.asp" ENCTYPE="multipart/form-data"&#062; <BR>&#060;INPUT TYPE="FILE" SIZE="40" NAME="FILE1" VALUE="C:myfile.txt"&#062;<BR>&#060;/BR&#062;<BR>&#060;INPUT TYPE="SUBMIT" VALUE="Upload"&#062; <BR>&#060;/FORM&#062; <BR>

  2. #2
    Join Date
    Dec 1969

    Default Can't do issue...

    Since it easy to auto-submit a form, if you could also set the VALUE= of an &#060;INPUT TYPE=FILE&#062;, then anybody could put a popup window all over the web that would try to upload things from the user machines such as registry files, log files, favorites files, etc., etc.<BR><BR>So, sorry, but this is a place where user interaction is *required* in all browsers.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts