ASP file Upload and hidden fields

Discussion in 'ASP General' started by Igor, Apr 8, 2004.

  1. Igor

    Igor Guest

    Good afternoon,
    I have an .htm page with "input type=file" box, as well as .asp page
    to which that file is posted. It works. Since the path for the file to
    be uploaded is constant, how can I use the current setup of .htm and
    ..asp pages to upload a file from a client machine without a utility. I
    read on one of the forums that "hidden" field cannot be used for
    files. If there is no way to use my current structure, I am also
    looking into FSO object, using one .asp page to post to itself,
    specifically .getFile method to start. What are the next steps to
    take? The code for the single .asp page is below. File.move works
    also, not sure if I need it though. Thank You, Igor.

    <%
    Set fso = CreateObject("Scripting.FileSystemObject")
    Set file = fso.getfile("C:\_WebApps\igor\file_upload\scripts.txt")

    'response.write file.name

    file.move("C:\_WebApps\igor\file_upload\test\")

    'file.copy("C:\_WebApps\igor\file_upload\test")
    %>


    <html>
    <body>
    <form name="upload_form" method="post" enctype="multipart/form-data"
    action="upload_link_old.asp">

    <input type="hidden" id="isdone" name="isdone" value></input>



    <!--<input type=file>-->

    <br>

    <input type=submit value="Upload File">
    </form>
    </body>
    </html>



    <script type="javascript">


    </script>
     
    Igor, Apr 8, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UGF0cmljay5PLklnZQ==?=

    Passing Data with Hidden Fields asp.net

    =?Utf-8?B?UGF0cmljay5PLklnZQ==?=, Jan 24, 2005, in forum: ASP .Net
    Replies:
    5
    Views:
    38,231
    Patrick Olurotimi Ige
    Jan 27, 2005
  2. Patrick Olurotimi Ige

    Passing Data with Hidden Fields in ASP.NET

    Patrick Olurotimi Ige, Jan 24, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    635
    Patrick Olurotimi Ige
    Jan 24, 2005
  3. =?Utf-8?B?U2FyYXY=?=

    Upload a file without file Upload control - ASP.Net

    =?Utf-8?B?U2FyYXY=?=, Aug 2, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    3,079
    Bruce Barker
    Aug 3, 2005
  4. Thor W Hammer
    Replies:
    5
    Views:
    3,014
    Erik Funkenbusch
    Nov 10, 2005
  5. simon
    Replies:
    1
    Views:
    506
    Munna
    Jun 19, 2008
  6. Rick
    Replies:
    3
    Views:
    10,172
    Alexey Smirnov
    Apr 13, 2010
  7. tesis
    Replies:
    2
    Views:
    665
    Daniel Crichton
    Feb 27, 2009
  8. Replies:
    0
    Views:
    437
Loading...