Do you have the following in your form tag?
HTML Code:enctype="multipart/form-data"
ginger
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
All file attachments regardless of type and extension are always recieved as a .txt file.
Any ideas why this would be happening?
Thanks,
Jon King
Do you have the following in your form tag?
HTML Code:enctype="multipart/form-data"
ginger
Yes. I have used the script for years and years but never the attachment options. I cannot find in the code anything that would use the correct MIME type based on the file attachment extension.
Last edited by jonking; 27-Apr-2011 at 12:13 PM. Reason: Clairification
Can you post a link to the form, or at least post the entire form contents here?
ginger
Removed code sample due to found fix.
Last edited by jonking; 27-Apr-2011 at 02:54 PM.
Have you allowed file uploads within formmail?
You aren't using conditions inside an INI file to limit the types allowed are you?Code:define("FILEUPLOADS",true);
Are these very large files?
You might want to create a $FILE_REPOSITORY if you haven't already and see if the file type remains correct.
Just throwing out ideas.
ginger
>Yes FILEUPLOADS is set to true.
>No conditions in the INI
>I am testing with very small files, file size not an issue.
I will try the file repository to help narrow down the "search area".
You may also want to run phpinfo() and see if uploads are allowed on the server.
>Uploads are allowed on the server
You might want to hire Russell (the Tectite formmail developer) to assist you. You can subscribe for support in the thread below.
ginger
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks