Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

graphic file upload

Status
Not open for further replies.

lagringaloca

Programmer
Apr 4, 2001
4
PR
I am trying to write a simple form for uploading graphic files. I am using the "enctype:multipart/form-data" with an "action:mailto:myemail@domainname.com", the text comes in fine, the graphic files ALL arrive corrupted! what am I missing here? Thank you!
 
There are a couple of faqs on uploading files in the Perl forum FAQs section. You might look there.

'hope this helps. If you are new to Tek-Tips, please use descriptive titles, check the FAQs,
and beware the evil typo.
 
If you are running on an NT server u must use the binmode function on the file before you upload to it or it will corrupt data. This function will be ignored by *nix servers so there is no reason not to use it if you are unsure where your code will be used.
 
Nooooo NT servers allowed- all my sites are hosted on UNIX and LINUX thank you very much! LOL! From the research I have done, it seems to me that if I want the site to be able to send uploaded graphic files it must go to a CGI-bin first, but embedding an FTP applet would be the best solution. Thank you for your response though! Feliz Navidad!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top