+ Reply to Thread
Results 1 to 9 of 9

Thread: Allowing visitors to upload files

  1. #1
    sewhothth is offline Sew Hot Threads
    Join Date
    Feb 2008
    Location
    Illinois
    Posts
    62
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Allowing visitors to upload files

    Ok, I created a browse button and upload area in a quote form on my site. Where do I get the custom cgi script so my site can process the incoming files?

  2. #2
    Jef S.'s Avatar
    Jef S. is offline WHB Community Leader
    Join Date
    Apr 2007
    Location
    Orlando, FL, USA
    Posts
    514
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Uhhhh, what? (sorry, I kid)

    Which cgi script do you mean? Assuming it's just a perl script, just open it up in a text editor(NOT NOTEPAD OR WORD) and look for the part that mentions <input type=submit name=submit> and change it to say <input type="image" src="images/submit.jpg" value="Submit" alt="Submit">

    The src= section needs to point to the location of the files, obviously.
    Jef S.
    WHB Support
    1.800.252.1887 x 501
    AIM and MSN in profile

  3. #3
    sewhothth is offline Sew Hot Threads
    Join Date
    Feb 2008
    Location
    Illinois
    Posts
    62
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Jef S. View Post
    Uhhhh, what? (sorry, I kid)

    Which cgi script do you mean? Assuming it's just a perl script, just open it up in a text editor(NOT NOTEPAD OR WORD) and look for the part that mentions <input type=submit name=submit> and change it to say <input type="image" src="images/submit.jpg" value="Submit" alt="Submit">

    The src= section needs to point to the location of the files, obviously.
    in the sample I saw, perl was listed in the script.

  4. #4
    sewhothth is offline Sew Hot Threads
    Join Date
    Feb 2008
    Location
    Illinois
    Posts
    62
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Jef S. View Post
    Uhhhh, what? (sorry, I kid)

    Which cgi script do you mean? Assuming it's just a perl script, just open it up in a text editor(NOT NOTEPAD OR WORD) and look for the part that mentions <input type=submit name=submit> and change it to say <input type="image" src="images/submit.jpg" value="Submit" alt="Submit">

    The src= section needs to point to the location of the files, obviously.

    When you say, open it up in a text editor, what do I open up? Do I pull a script from cpanel? Also, what other text editor would I use.

  5. #5
    Jef S.'s Avatar
    Jef S. is offline WHB Community Leader
    Join Date
    Apr 2007
    Location
    Orlando, FL, USA
    Posts
    514
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The easiest thing would be to use the text editor or code editor in the file manager in cPanel.
    Jef S.
    WHB Support
    1.800.252.1887 x 501
    AIM and MSN in profile

  6. #6
    sewhothth is offline Sew Hot Threads
    Join Date
    Feb 2008
    Location
    Illinois
    Posts
    62
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Jef S. View Post
    The easiest thing would be to use the text editor or code editor in the file manager in cPanel.
    Ok, so what script do I put in their so I can look for what you told me to look for.

  7. #7
    sewhothth is offline Sew Hot Threads
    Join Date
    Feb 2008
    Location
    Illinois
    Posts
    62
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I'll search the net for some more info on this.

  8. #8
    Jef S.'s Avatar
    Jef S. is offline WHB Community Leader
    Join Date
    Apr 2007
    Location
    Orlando, FL, USA
    Posts
    514
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by sewhothth View Post
    Ok, so what script do I put in their so I can look for what you told me to look for.
    look in the page that has the form on it, you'll see the script in the <form action=...> line, the name of the script should be there. Post the URL or PM me the URL if you want me to take a look.
    Jef S.
    WHB Support
    1.800.252.1887 x 501
    AIM and MSN in profile

  9. #9
    sewhothth is offline Sew Hot Threads
    Join Date
    Feb 2008
    Location
    Illinois
    Posts
    62
    WHB Points this Month
    0.00
    WHB Points
    0.00
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Jef S. View Post
    look in the page that has the form on it, you'll see the script in the <form action=...> line, the name of the script should be there. Post the URL or PM me the URL if you want me to take a look.
    www.sewhotthreads.com

    I created the quote form in notepad. Here is what I just added to the form to get the Browse button and text box. According to what I read, I need to add the perl script after the sewhotthreads.com/ where the cgibin portion is. The rest of the form makes it to my email fine.


    <form method="post" enctype="multipart/form-data" action="http://www.sewhotthreads.com/cgibin/">
    <h2>What file would you like to send?</h2>
    <p><input type="file" name="title" size="30"/>

+ Reply to Thread

Posting Permissions

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