Results 1 to 5 of 5

Thread: upload script

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2001
    Posts
    302

    upload script

    anyone know how to upload through a command line...

    example of upload script: http://webserver.com/cgi-bin/upload.pl

    i would like to upload c:\test.txt... I tried: http://webserver.com/cgi-bin/upload.pl?c:\test.txt .... it doesn't work..
    It says Wrong or missing form 'action' field. The action field is the local filename to upload...


    any ideas?


    thank you

  2. #2
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    Remember, if someone's post was not helpful, you can always rate their post negatively .

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2001
    Posts
    302
    How about this...

    I have an upload.htm webpage. It has one text field (upfile) and two buttons (browse and submit)

    upload.htm:
    <form method="POST" enctype="multipart/form-data" action="/cgi-bin/upload.pl">
    <input type=hidden name="action" value="Upload">
    .
    .
    .
    <td><input type=file name="upfile"></td>
    <td><input type=submit value="Submit"></td>



    is it possible make a program that:
    1- opens a webpage (form)
    2- fills in the upfile field with (c:\test.txt)
    3- submits the form



    Is this possible?



    thanks

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2001
    Posts
    302
    How about converting the upload.html file into VB code?

    Is it possible?



    thanks

  5. #5
    The picture isn't missing BuggyProgrammer's Avatar
    Join Date
    Oct 2000
    Location
    Vancouver, Canada
    Posts
    5,217
    try 'action=Upload&upfile=C:\test.txt'
    Remember, if someone's post was not helpful, you can always rate their post negatively .

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