---
title: "User Uploads: File Limits and Image Optimization"
id: "197716"
type: "knowledgebase"
slug: "upload-limits-and-image-optimization"
published_at: "2026-11-04T14:26:20+00:00"
modified_at: "2026-11-04T14:26:20+00:00"
url: "https://fooplugins.com/documentation/foogallery/user-uploads/upload-limits-and-image-optimization/"
markdown_url: "https://fooplugins.com/documentation/foogallery/user-uploads/upload-limits-and-image-optimization.md"
excerpt: "Set file counts, sizes and formats, prepare images in the browser, and enable supported MP4 uploads."
taxonomy_knowledgebase_cat:
  - "User Uploads"
---

[User Uploads](https://fooplugins.com/documentation/foogallery/user-uploads/)

# User Uploads: File Limits and Image Optimization

## Related Articles

- [User Uploads: Choose Who Can Upload](https://fooplugins.com/documentation/foogallery/user-uploads/choose-who-can-upload/)
- [User Uploads: Configure Email Notifications](https://fooplugins.com/documentation/foogallery/user-uploads/user-upload-email-notifications/)
- [User Uploads: Customize the Upload Form](https://fooplugins.com/documentation/foogallery/user-uploads/customize-the-upload-form/)
- [User Uploads: Review and Moderate Uploads](https://fooplugins.com/documentation/foogallery/user-uploads/moderate-user-uploads/)
- [User Uploads: Share Links, QR Codes and Upload Pages](https://fooplugins.com/documentation/foogallery/user-uploads/share-upload-links-and-qr-codes/)

**Need more help?** Browse all documentation or open a support ticket.

[All docs](/documentation/)

[Support](/support/)

Set file counts, sizes and formats, prepare images in the browser, and enable supported MP4 uploads.

User Uploads guides - [Getting started](/documentation/foogallery/addons/user-uploads/)
- [Who can upload](/documentation/foogallery/user-uploads/choose-who-can-upload/)
- [Links, QR codes and upload pages](/documentation/foogallery/user-uploads/share-upload-links-and-qr-codes/)
- **File limits and optimization (this guide)**
- [Fields, labels and appearance](/documentation/foogallery/user-uploads/customize-the-upload-form/)
- [Moderation and approvals](/documentation/foogallery/user-uploads/moderate-user-uploads/)
- [Receipts and email notifications](/documentation/foogallery/user-uploads/user-upload-email-notifications/)

 On this page - [Set count, size and allowed types](#file-limits)
- [Prepare images in the visitor’s browser](#image-optimization)
- [Allow supported MP4 videos](#video-uploads)
- [If a file is rejected or preparation fails](#file-troubleshooting)

 Edit the gallery and open **User Uploads > Uploads**. These settings apply to that gallery; they do not raise your hosting account or server limits.

## Set count, size and allowed types

- **Maximum Uploads Allowed** limits the number of files per submission, not a lifetime total per visitor. Leave it blank for unlimited files per submission.
- **Maximum Upload Size** sets the maximum size in MB for each file. Uploads must also fit the site’s WordPress/PHP/server limits. There is no universal WordPress 5 MB limit.
- **Allowed File Types** controls the extensions accepted by this gallery. Galleries without a saved custom list include JPG, JPEG, PNG, WebP and AVIF. Existing custom lists keep their saved choices.

[/wp-content/uploads/2026/09/user-uploads-uploads-final-1.3.0.png](/wp-content/uploads/2026/09/user-uploads-uploads-final-1.3.0.png)

Direct AVIF uploads require WordPress 6.5 or newer and AVIF support in the server image library. Test the formats you intend guests to use on your actual site.

## Prepare images in the visitor’s browser

1. Enable image optimization for this gallery. It is optional and off by default.
2. Set a maximum width and choose **JPEG, PNG or WebP** output. Set quality for JPEG or WebP; PNG is lossless and ignores quality.
3. Include the selected output format in Allowed File Types, then save the gallery.
4. Try a supported image. The upload dialog shows preparation progress before the prepared file is submitted.

[/wp-content/uploads/2026/09/image-optimization-settings-detail.png](/wp-content/uploads/2026/09/image-optimization-settings-detail.png)

Browser re-encoding removes embedded image metadata and turns animated images into a single frame. Collect captions, alt text and other details through the form when you need them. Optimization does not process MP4 videos.

## Allow supported MP4 videos

In **User Uploads > General**, enable **Allow Video Uploads**. It is off by default and currently supports MP4 only. FooGallery video support must also be active; without it, the form remains image-only even if the toggle is enabled. Adjust allowed types, upload size, file count and visitor-facing labels for a mixed-media form.

Videos use a generated poster for preview and can follow the same moderation process. Test an MP4 on the intended phones and browsers before inviting video submissions.

## If a file is rejected or preparation fails

- Read the displayed validation message. Check the file’s size, extension and type against the gallery settings.
- Check that the optimization output format is allowed. Try a small JPEG or PNG to distinguish a format issue from a general upload problem.
- If the server refuses uploads below the gallery limit, inspect WordPress/PHP/server limits with your host.
- If a browser cannot decode an image, try another supported file. Do not promise conversion of every format supplied by a phone.
- For an unavailable video option, confirm FooGallery video support is active.

Related: [Getting started and all guides](/documentation/foogallery/addons/user-uploads/)
 · [Try the upload demos](/foogallery-wordpress-gallery-plugin/user-uploads/#demo)
.

Resources

## Find the right next step

Browse setup guides, get help with your site, or find licensing information.

![Image](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)

### Documentation

Search setup guides, product docs, and troubleshooting articles.

[Browse docs](/documentation/)

![Image](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)

### Support

Open a ticket with product details so we can help quickly.

[Get support](/support/)

![Image](data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%200%200'%3E%3C/svg%3E)

### Licensing

Review account, renewal, refund, and license information.

[View details](/licensing/)
