Forum Moderators: phranque

Message Too Old, No Replies

Need to attach file to a website form

Please help

         

ddesign

4:10 am on Mar 8, 2005 (gmt 0)

10+ Year Member



Hi, I have two web sites that needs to allow the site visitor to attach a file - one for an on-line employment application where the company wants applicants to attach a resume, and the other that needs to allow site visitors to attach a photo.

I cannot find any code that works. I get the submission delivered via email, but I do not receive the attachment, even though it shows that the web visitor attached the file.

Here's the code I'm trying to use:
<INPUT TYPE="file" NAME="attachedfile" MAXLENGTH=50 ALLOW="text/*">

I've heard that .ASP might be the solution, but I have no experience with it! Please help if you can.

griz_fan

7:14 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



the ability to do this would be determined largly by what your web host allows. Search hotscripts.com for "Upload Systems", there are scores to choose from, available in ASP, PHP, JSP, PERL, just to name a few. Find out what you can run on your web server to narrow down the search...

rocknbil

7:50 pm on Mar 9, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Look into the perl modules mime:lite for file attachment and CGI.pm for parsing multipart/form-data required in file uploads. These two will do everything you need.

I have a customer with an online newsletter subscription service and he uploads the .pdf newsletter, selects the recipients as a search result query, and pushes one button. :-D