Results 1 to 2 of 2

Thread: Httpinputfile Help

  1. #1

    Thread Starter
    Member
    Join Date
    Aug 2000
    Posts
    32

    Httpinputfile Help

    Is there a way to programatically create a "PostedFile"?

    I currently have an HTTPINPUTFILE control on my page, however, is there a way to either write a value into this control using javascript (ie: some variable), then when posting the form, the file (which would be a something like c:\Test.txt) that was programatically entered into the control, be posted? Or is there a way to do this without using the actual control itself.

    Any ideas would be great

    Thanks in advance

  2. #2
    Fanatic Member Patoooey's Avatar
    Join Date
    Aug 2001
    Location
    New Jersey, USA
    Posts
    774

    Re: Httpinputfile Help

    Originally posted by ghoff12
    Is there a way to programatically create a "PostedFile"?

    I currently have an HTTPINPUTFILE control on my page, however, is there a way to either write a value into this control using javascript (ie: some variable), then when posting the form, the file (which would be a something like c:\Test.txt) that was programatically entered into the control, be posted? Or is there a way to do this without using the actual control itself.
    For security reasons, that control doesn't allow you to set the file name from the server side. Only the user can do it thru browsing.

    You have to search for 3rd party controls for that ability.

    John

Posting Permissions

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



Click Here to Expand Forum to Full Width