WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
[resolved] Setting Upload Size Limit for Multiple File Upload Fields (3 posts)

  1. thecoopersmith
    Member
    Posted 2 years ago #

    I have a form that allows user to upload 4 files in a single form. The form is working when I use very small files, but I need to Increase the File Size Max Limit. I would like to allow each file uploaded to Max at 3MB. I tried...

    [file browse_1 class:file-input-area filetypes:pdf|jpg|gif|png|zip|rar limit:3mb]

    [file browse_2 class:file-input-area filetypes:pdf|jpg|gif|png|zip|rar limit:3mb]

    as suggested in other forums, but the form just acted like it was loading (spinning) for 30 mins or so. Is this wrong or do I need to do something else too?

    Any help would be greatly appreciated! Thx

    http://wordpress.org/extend/plugins/contact-form-7/

  2. thecoopersmith
    Member
    Posted 2 years ago #

    I figured it out. Had to add code to php.ini file as well as change it for me to php5.ini

    In addition to what was already php5.ini, I added:

    post_max_size = 25M
    default_mimetype = "text/html"
    default_charset = "UTF-8"
    file_uploads = On
    upload_max_filesize = 25M
    allow_url_fopen = On
    user_agent="PHP"
    default_socket_timeout = 60

    Not sure if it was all needed, but it was in the example I found, which I don't have the link to for some reason. Sorry about that.

    Files uploaded and I received in my Gmail right away! Success!

  3. KristyO
    Member
    Posted 1 year ago #


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic