Dynamically create "File" form field?

Results 1 to 2 of 2

Thread: Dynamically create "File" form field?

  1. #1
    Join Date
    Dec 1969

    Default Dynamically create "File" form field?

    Hi. I'm trying to use the cpshost.dll for file upload. It works fine when the user browses for a file and submits the form. What I'm trying to do is upload a file the user just created (through another piece of software) from the Temp directory to the server. This is all done in an IE5 browser. So, I've be dynamically creating <input type="file"> fields with the value set to the local path. When I submit, it won't upload the file. Any thoughts?

  2. #2
    Join Date
    Dec 1969

    Default Can't do it...

    This is a security feature.<BR><BR>Browsers are not SUPPOSED to let you upload files *unless* the user has explicitly selected it and pushed an appropriate button. <BR><BR>Think about it: If not for this feature, how many hackers would start uploading every private file they could find on every computer that ever visited some site???<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