I figured out how to fix my problem.
In my nginx config file (/etc/nginx/nginx.conf) I added client_max_body_size 100m; at the end of the #Basic Settings in the http {} section.
I hope this answer will help some of you and please tell me if there is any better solution to this problem.
Related Posts:
- What is the alternative to “ when it comes to calling Media (image) files in the ‘attachment.php’ file?
- Edit Image/Image Details – Replace button missing
- Uploading media with the REST API
- Remove “Insert from URL” link in Media upload – WP 3.5
- Decrease file size upload in Media
- Adding a custom image upload size and making it selected by default?
- Hide old attachments from wp media library
- How to register images uploaded via FTP in media library?
- Failed media upload: “The uploaded file was only partially uploaded.”
- How to upload imagick resource to media in wordpress
- Upload images and attachments from frontend form
- Image upload via FTP to wordpress media library
- Adding a querystring to an image URL when clicking ‘insert into post’?
- How to get media objects
- NGINX rewrite rules for multisite
- How do I get around “Sorry, this file type is not permitted for security reasons”?
- WordPress automatically adds links to uploaded images
- zip unzip attachments in wordpress
- Get featured image with custom size outside WordPress
- Custom upload folder
- Convert all uploaded PNG files to PNG-8 format
- How to decrease the max file upload size without using php.ini or htaccess?
- Change image data durgin upload
- Hook on file upload
- Sudden Upload HTTP errors, PHP uploads and memory limits are already to high to my taste. Anything else?
- wp_delete_attachment not working with multiple values
- Renaming “Expand Details” within “Add Media”
- show/hide attachments
- Can’t upload files
- How to automatically convert images to WebP on WordPress?
- WordPress directories not writable after PHP version upgrade
- Changing upload directory temporarily
- How to Protect Uploads, if User is not Logged In?
- Upload images to remote server
- How to change upload directory in wp_handle_upload
- How to wp_upload_bits() to a sub-folder?
- “Add Media” only shows “Full Size” under Attachment Display Settings
- Where do the favicons for Media Files come from
- Is it possible to trigger some JavaScript when Media Popup is opened?
- Creating a metabox to upload multiple images, Ignoring The Featured Image
- PHP/Manual use of images? – 2 Questions
- Ignore a filter on the media library
- Debugging upload problem: What part of WP does actual image-resizing?
- Restricting access to files within a specific folder [duplicate]
- Accessing a random image via ajax
- Make WordPress upload directory outside wordpress root with custom url
- Media items hogging pretty permalinks
- Adding featured image via PHP
- How to upload a media file via FTP and then create an attachment post with it?
- How to enlarge the media file upload size in wordpress admin
- File upload, uploads only file name
- Different upload path per file type
- wp_handle_upload – The uploaded file could not be moved to wp-content/uploads/2012/09
- Memory errors with media upload, WordPress can’t use more than 96M (while there’s 512 available!)
- Get most recent media upload
- Cannot upload .mp3 file to wordpress media
- Convert all images to PNG on file upload
- Using file_get_contents with Gravity Forms uploads folder to create images in the media library returning false
- Switch between tabs on “Insert Media” dialog
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- How organize uploaded media in WP?
- How to combine wordpress_logged_in cookies in one cookie?
- Need help with Google drive API [closed]
- WordPress Issue : The uploaded file could not be moved to wp-content/uploads/
- how to combine wordpress htaccess on my root domain + php on subfolder
- Using wp_enqueue_media() with switch_to_blog() issue
- Large Woocommerce Site (83,000 items), What Can I Do? [closed]
- Blob file download problem
- WordPress get_media_embedded
- Migrating media files (documents only) to a fresh install and maintaining the same directory structure
- How does wordpress handle media files?
- Get uploaded image and attach it to the new post
- Why is my max_upload_filesize being limited to 2M? [duplicate]
- Images Uploaded saving onto older/previous year folders
- Convert canvas to image and upload image to server
- How to get the filename from file system and create a download link?
- custom plugin with upload files does not work
- Infinite Loop in WordPress Installation
- Problem with inserting multiple images in gallery of each WooCommerce product programmatically
- WordPress on Ubuntu – “File not Found” for home.php – Trying to Redirect to Root Folder
- Can’t upload format files on media library
- Why can’t I connect to the wordpress install page with Nginx?
- unsharp thumbnails after uploading image
- Using custom php to connect to database blocks wp from accessing galery pictures
- WordPress/NGINX not respecting the category URL for new posts
- media_handle_upload fails with gravity form submitted image
- Issues with WordPress 3.9.6 media libraries on XAMPP
- File path for attachments outside of wp-content/uploads
- WordPress will suddenly stop saving files uploaded by my code (ran in nopriv ajax)
- How can I add a Description column to the media library browser screen?
- Broken Media Library
- File Upload with Server in safe_mode
- Generate and upload screenshot as featured image for user-submitted post
- Save Custom Meta Value on Media Upload
- Pull latest Youtube Video from json url and make new post
- upload image to wordpress media library failed for custom post type
- How to Upload a media item with alt text and description
- NGINX rewrite rules for WordPress Subdirectory Multisite to support deep URL
- Restricting Image Upload Sizes using ‘wp_handle_upload_prefilter’ – Stuck media progress bar when Featured Image?
- Convert base64 string to WordPress attachment uploads multiple images instead of a single one