Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: All File Attachments Are Incorrectly Sent As .txt Files

  1. #1
    Join Date
    Apr 2007
    Posts
    16

    Default All File Attachments Are Incorrectly Sent As .txt Files

    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

  2. #2
    Join Date
    May 2008
    Posts
    1,291

    Default Re: All File Attachments Are Incorrectly Sent As .txt Files

    Do you have the following in your form tag?

    HTML Code:
    enctype="multipart/form-data"

    ginger

  3. #3
    Join Date
    Apr 2007
    Posts
    16

    Default Re: All File Attachments Are Incorrectly Sent As .txt Files

    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

  4. #4
    Join Date
    May 2008
    Posts
    1,291

    Default Re: All File Attachments Are Incorrectly Sent As .txt Files

    Can you post a link to the form, or at least post the entire form contents here?

    ginger

  5. #5
    Join Date
    Apr 2007
    Posts
    16

    Default Re: All File Attachments Are Incorrectly Sent As .txt Files

    Removed code sample due to found fix.
    Last edited by jonking; 27-Apr-2011 at 02:54 PM.

  6. #6
    Join Date
    May 2008
    Posts
    1,291

    Default Re: All File Attachments Are Incorrectly Sent As .txt Files

    Have you allowed file uploads within formmail?

    Code:
    define("FILEUPLOADS",true);
    You aren't using conditions inside an INI file to limit the types allowed are you?

    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

  7. #7
    Join Date
    Apr 2007
    Posts
    16

    Default Re: All File Attachments Are Incorrectly Sent As .txt Files

    >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".

  8. #8
    Join Date
    May 2008
    Posts
    1,291

    Default Re: All File Attachments Are Incorrectly Sent As .txt Files

    You may also want to run phpinfo() and see if uploads are allowed on the server.

  9. #9
    Join Date
    Apr 2007
    Posts
    16

    Default Re: All File Attachments Are Incorrectly Sent As .txt Files

    >Uploads are allowed on the server

  10. #10
    Join Date
    May 2008
    Posts
    1,291

    Default Re: All File Attachments Are Incorrectly Sent As .txt Files

    You might want to hire Russell (the Tectite formmail developer) to assist you. You can subscribe for support in the thread below.

    ginger

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Problem with file Attachments
    By lemonade in forum FormMail Subscription Support
    Replies: 3
    Last Post: 16-Aug-2005, 08:24 PM
  2. HTML formatting incorrectly
    By ShadoFlameX in forum FormMail Subscription Support
    Replies: 17
    Last Post: 04-May-2005, 04:15 PM
  3. upload attachments
    By Mamut in forum FormMail Subscription Support
    Replies: 10
    Last Post: 20-Jan-2005, 07:21 AM
  4. Form Attachments
    By Andy123 in forum FormMail Subscription Support
    Replies: 8
    Last Post: 09-Jul-2004, 08:59 PM
  5. sampleform.txt
    By leeolive in forum FormMail Subscription Support
    Replies: 1
    Last Post: 19-Jun-2004, 08:44 PM

Bookmarks

Posting Permissions

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