Welcome to WebmasterWorld Guest from 22.214.171.124
Forum Moderators: phranque
I was hoping this would work with the file as well, perhaps as an attachment, but it doesn't seem to.
The guide file suggests that if uploading files I should point the action of the form to an FTP site, but what about the rest of the information in the form?
Does anyone have a suggestion about this bit of technology?
Sending the file as an attachment would require the file to be uploaded first to the server and then sent as an attachment from whatever mail program is installed. (Which would result in a leftover temp file if you use cgi.pm for the upload) The bit about setting the form action to an FTP server, I have never heard or seen done. There would have to be something (the script most cases) to actively take the file and feed it to the FTP server once it was logged in etc.
I would just write a perl script to upload the file after it extracts the extra form data and then send the file via email or maybe just send an email notice that a file was upload and have the perl script automagically update a "uploaded files" page on the site.
I'm using the Formmail.pl from Matt's script Archive.
So the file upload idea is much more complicated than I was thinking.
I looked through the script code and didn't see anything that resembled an upload routine.
My perl is very limited. Perhaps I can find a script that already does this and I can modify it.