1] To do this, change the upload_max_filesize and post_max_size directives in your php.ini file.
To ensure that file uploads work correctly, the post_max_size directive should be a little larger than the upload_max_filesize. For example, the following settings demonstrate how to set a file upload limit to 20 megabytes:
upload_max_filesize = 20M
post_max_size = 21M
2] You need to add the following codes at the bottom of the .htaccess file:
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value max_execution_time 300
php_value max_input_time 300
ref links: https://kinsta.com/blog/wordpress-maximum-upload-file-size/
https://kinsta.com/blog/wordpress-maximum-upload-file-size/
Related Posts:
- Upload Multiple Files With media_handle_upload
- How to get the image EXIF date/time and use it for the WP post date/time
- delete uploaded file
- How to save Uploaded image in custom option panel?
- Allowing SVG uploads in media uploader without plug-in
- Custom image size in Media Dropdown
- Images uploaded using media uploader are appearing upside down
- How can I enable uploading excel files?
- Can I hide certain upload folders in media library [duplicate]
- WordPress upload_mimes not working for front-end uploads of 3D files
- Disable auto-resizing of uploaded images, but only for certain filename
- When sale price is 0.00 show only regular price
- Can’t generate thumbnail images
- How to stop media_sideload_image from running when deleting a post?
- Possible to hook into Media Library preview File column and use a custom image?
- Function that prevents users from uploading photos more photos
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- How to add HTML into error message
- Serving cache from multiple domain names
- restrict uploaded image size and fixed image display size
- Function image_send_to_editor returns emty title tag
- Zip all (original) images from media gallery
- Figure inlined width trigger distorted layout
- wp_upload_bits – define (sub)folder / (sub)directory before filename?
- Rename file after title , one small problem
- When the WP_EDITOR button is pressed, the user is prompted to select a photo from their device
- How to overwrite image if it already exists – WordPress, Gravity form
- Convert Image to Webp on upload without plugin
- Display random categories on the front page (Finding and Editing Theme Functions)
- Use author author display name in permalink structure for pages and posts
- Difference between the_content() and get_post()?
- Automatically set the featured image
- How to target specific wp_nav_menu in function?
- Help me to understand wp_header() and wp_footer() functions
- How to call WordPress functions from a form processing script
- Apply jquery script to only woocommerce product pages and categories
- How do you permanently remove default rewrite rules from the wp_options table?
- Can shortcodes contain conditional statements? Even without them my shortcode renders blank page
- remove the wrapping of text widget or
- Most elegant way to enqueue scripts in function.php with foreach loop
- Display WordPress Search
- Remove_filter (‘the_content’, ‘wpautop’) is not working
- Where does function_exists() look to decide whether a function exists? [closed]
- Clean-up script tags
- Make “sidebar template” the default template for new pages
- WordPress function for 1 to for many
- Logic to Print/echo a css class only for 1st post and ignore all post after 1st? [closed]
- How can you limit srcset on a single type of page?
- Remove Font-Awesome MaxCDN Link & Load Locally
- How to fix Warning: call_user_func_array()?
- How to get specified parent page title in my function
- I want to get product attirbute in the section below
- Full page template function
- Redirect from “private” page and functions.php which tag add to add_action()?
- Display gallery on bottom after content
- watermarking gallery items
- WordPress Shortcode function display outside of widget
- Get rid of the widget Item Class=”widget-item”
- Storing password (functions.php)
- Check if the image size is available and if not use ‘full’ image size
- Change menu based on page template via functions.php
- What is the correct way to include my new functions and scripts in WordPress?
- Perform function on publish AND save (not just save)
- add_menu_page() with variable function
- include w_thumbnail_src in function?
- How to add or delete default value theme options while activate and deactivate theme
- Custom blog post summary on blog index page
- Pass URL to iframe in WordPress Block
- How do I make the comment disappear after deleting from the database?
- External api call and make global variable for any page visitor enters , page-home, page, single etc
- WP AJAX Request Not Working
- Unable to login after registration
- Remove the ‘category’ url for one category type
- CSS style and app.js not loading
- blank page with wp_get_attachment
- Parent category as WOOCommerce Categories widget title
- Altering page / category names in breadcumbs
- Change user role based on total number of items ordered
- Including admin-options.php file in Child Themes
- How To Get WordPress Categories Last Update Date?
- unregister_sidebar in child theme not working
- Print all inline styles to head
- Function to return custom post type titles from blog id 1
- Use $_POST[‘value’] inside functions.php
- How to request login for user but not for bots
- Function Reference for custom link in Admin Menu Management Page
- Call ACF data from functions.php [closed]
- How to resize image from import image url?
- Vimeo video play button color function
- User’s Comments Number: Storing it in a meta field for different uses
- Show one post per author and order by custom field
- Text before price on WooCom
- Warning: call_user_func_array() expects parameter 1 to be a valid callback
- Change Post status based on custom field date +1 day
- How to add height and width dimensions automatically to archive descriptions
- Change TinyMCE undeline outpout
- Loading newest dependency javascript module file in functions.php
- How to store page-{id}.php templates in custom folder
- Setcookie not setting cookies anywhere except admin
- WooCommerce, change “Add to Cart” to “Link to Product”, only for specific categories