WordPress.org

Ready to get started?Download WordPress

Forums

Frontend Uploader
Upload File Size (9 posts)

  1. Erick B
    Member
    Posted 9 months ago #

    What php file has the file size allowed to upload? I am having a problems where uploading a ZIP file over 1mb fails. How to change restrictions. It is not my ini or htaccess files.

    Thank you
    Erick B

    http://wordpress.org/extend/plugins/frontend-uploader/

  2. Rinat Khaziev
    Member
    Plugin Author

    Posted 9 months ago #

    Hey Erick,

    There are PHP and WordPress settings that affect max upload size.

    Here's a good tutorial on how to fix php settings.

    If your site is in multisite network, be sure to check Network Settings.

  3. Erick B
    Member
    Posted 9 months ago #

    Thank you for quick response. I will take a look and post my results.

  4. Erick B
    Member
    Posted 9 months ago #

    I have tried this as well as contacting my Host Provider (Host Gator).

    It seems to be something in the plug in where I can upload a 5 MB photo but when trying to upload a 5 MB zip it fails.

    You can upload a ZIP file with 500KB no problem, but when you upload a 1MB zip it fails.

    Help!

    Erick B

  5. Erick B
    Member
    Posted 9 months ago #

    Works with all other files was unable to get ZIPPED files over 500k to upload successfully. If you have any other suggestion would be helpful.

    Can get other up-loaders to work with large ZIP so I know its not my Host or file restrictions.

    Any other suggestion would be helpful.

  6. nerdjgua
    Member
    Posted 9 months ago #

    Erick,

    I'm able to upload Zipped files over 5MB. Check if you can upload another files that are 'application/something', e.g.: RAR, 7z, TAR, GZ, etc.

    Another thing to test:
    did you try to send on different browsers?

  7. Erick B
    Member
    Posted 9 months ago #

    I did not try other browsers. It was with RAR files. Other files work. I will try other browsers to see if this fixes it. Good feedback thank you.

  8. flynsarmy
    Member
    Posted 6 months ago #

    When uploading an archive larger than my max upload size, rather than showing an error message on the form I instead get wp-admin/admin-ajax.php's 0 message. When an upload is too large PHP or Apache seem to clear all $_POST and $_FILES data so I get the default admin-ajax.php message.

    Is there a way to detect if the upload is too large and return to the form with an appropriate error message?

  9. flynsarmy
    Member
    Posted 6 months ago #

    Figured out my issue above. If the upload size is above post_max_size $_POST and $_FILES will be empty. You can fix your plugin by making the form action admin-ajax.php?action=<your action> so your AJAX event is still triggered. There you can check for non empty $_SERVER['CONTENT_LENGTH'] with empty $_FILES and $_POST as per http://stackoverflow.com/a/11476684/309083 and output an error message about upload being too big.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.