Results 1 to 3 of 3

Thread: FormMail checking TOTAL file size of multiple uploads?

Hybrid View

  1. #1
    Join Date
    Mar 2010
    Posts
    13

    Default FormMail checking TOTAL file size of multiple uploads?

    Hi All

    I have an issue regarding multiple uploads, and a theory about my problem.

    I have a form which has a maximum of four image uploads.

    I have an upload/email limit on my server which after lots of testing I have established is about 9-10MB (as the server has to email attachments to me).

    I have set MAX_FILE_UPLOAD_SIZE to 9000 to invoke a custom message rather than the server error kicking in.

    However a thought has occurred to me: FormMail appears to be examining each file individually for a 9MB limit, whereas I need it to calculate a size for the COMBINED uploads before allowing the server to email the attachments.

    In my current setup, a single upload which is too large will easily be caught by MAX_FILE_UPLOAD_SIZE, but four smaller uploads (say 4MB each) will not be filtered by MAX_FILE_UPLOAD_SIZE and will be passed to the server, which then errors because it uses too much memory (16MB) to build the email I'm waiting for.

    Is this theory correct? And if so is there a way to get FormMail to consider the upload size as a whole, rather than checking individual files? I am running version 8.16.

    Thanks in advance.

  2. #2
    Join Date
    Mar 2010
    Posts
    13

    Default Re: FormMail checking TOTAL file size of multiple uploads?

    Bump...

    Are you there Russell? Do you think you might be able to help me with this if I paid a support subscription?

    Thanks

  3. #3
    Join Date
    Mar 2010
    Posts
    13

    Default Re: FormMail checking TOTAL file size of multiple uploads?

    Sorry to pester, but can anyone help? Crabtree? Ginger23?

    Normally I'd have a tinker with the PHP myself, but the sight of so much code makes me nervous...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to set up the formmail.php file?
    By treborito in forum FormMail Subscription Support
    Replies: 1
    Last Post: 19-Oct-2004, 06:29 PM
  2. Sorry but I am a total novice
    By Reev in forum FormMail Subscription Support
    Replies: 1
    Last Post: 31-Jul-2004, 08:45 PM
  3. Multiple selection list
    By GrandpaRob73 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 25-Jun-2004, 12:45 AM
  4. File uploads
    By dRiver in forum FormMail Subscription Support
    Replies: 2
    Last Post: 15-Jun-2004, 05:14 AM
  5. Formmail File Visible In URL Address
    By amazing616 in forum FormMail Subscription Support
    Replies: 5
    Last Post: 03-Jun-2004, 08:13 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
  •