{"id":3561,"date":"2016-03-04T13:14:28","date_gmt":"2016-03-04T13:14:28","guid":{"rendered":"https:\/\/cpanelplesk.com\/wp62\/?p=3561"},"modified":"2021-02-06T06:36:08","modified_gmt":"2021-02-06T06:36:08","slug":"how-to-upload-large-images-in-wordpress","status":"publish","type":"post","link":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/","title":{"rendered":"How to Upload Large Images in WordPress"},"content":{"rendered":"<p>Recently, one of our users getting error when uploading large images in WordPress. Many users face this error when trying to upload larger images in WordPress. It happens due to the file size limit. In this article, we will guide you how to fix this and upload large images in WordPress.<!--more--><\/p>\n<p>Your WordPress hosting provider may have configured their servers with a limit on file upload sizes.<\/p>\n<p>You can see this limit within your WordPress admin panel by visiting <strong>Media \u00bb Add New page.<\/strong><\/p>\n<p>Here if you find the file limit is lower than the file you are trying to upload, then you will definitely get an error like this:<\/p>\n<p>[wpfmb type=&#8217;error&#8217; theme=2]\u2018 filename.jpg exceeds the maximum upload size for this site\u2019[\/wpfmb]<\/p>\n<p>Another problem which may keep you from posting large image is <a href=\"https:\/\/cpanelplesk.com\/wp62\/wordpress-fatal-error-allowed-memory-size-exhausted\/\">memory limit.<\/a><\/p>\n<p>By standard, your WordPress site is able to use a fair amount of memory. When a program runs for too long and exhausts the described memory limit, then you will see an error.<\/p>\n<p>If you\u2019re experiencing either of these errors, then this article will help you fix so that you can easily upload huge files to <a href=\"https:\/\/cpanelplesk.com\/wp62\/beginning-with-wordpress-installing-wordpress\/\">WordPress<\/a>.<\/p>\n<h2>Fixing Image Upload Size in WordPress<\/h2>\n<p>If you want to upload large image and media files in WordPress, so here is how you can fix image upload size issue in WordPress.<\/p>\n<p>Simply add this code in your theme\u2019s\u00a0functions.php\u00a0file.<\/p>\n<div class=\"cpanel-files\"><\/div>\n<pre class=\"lang:default decode:true \">@ini_set( 'upload_max_size' , '100M' );\r\n@ini_set( 'post_max_size', '100M');\r\n@ini_set( 'max_execution_time', '300' );\r\n<\/pre>\n<p>This code tries to increase maximum upload file size, post maximum size, and maximum execution time limits for your WordPress site. However, this may not work for some WordPress websites.<\/p>\n<p>In that case, you may try adding following code to your\u00a0<a href=\"https:\/\/cpanelplesk.com\/wp62\/how-do-i-redirect-my-site-using-a-htaccess-file\/\">.htaccess<\/a>\u00a0file in your site\u2019s root folder.<\/p>\n<div class=\"cpanel-files\"><\/div>\n<pre class=\"lang:default decode:true \">php_value upload_max_filesize 100M\r\nphp_value post_max_size 100M\r\nphp_value max_execution_time 300\r\nphp_value max_input_time 300\r\n<\/pre>\n<p>If both of these methods don&#8217;t succeed, then you can try modifying these rules using <a href=\"https:\/\/cpanelplesk.com\/wp62\/changing-the-maximum-upload-size-in-php-ini\/\">php.ini file<\/a>.<br \/>\nThe php.ini file is a configurations file used by PHP to determine configurations. Customers on shared hosting, generally don\u2019t have access to the main\u00a0 file. However, you can still create an empty php.ini in your site\u2019s main directory using an FTP client.<br \/>\nAfter that simply add this code in your php.ini file:<\/p>\n<div class=\"cpanel-files\"><\/div>\n<pre class=\"lang:default decode:true \">upload_max_filesize = 100M\r\npost_max_size = 100M\r\nmax_execution_time = 300\r\n<\/pre>\n<p>That\u2019s all, I hope this article helped you to learn how to upload large images in WordPress. You may also like to see our article on <a href=\"https:\/\/cpanelplesk.com\/wp62\/fatal-error-maximum-execution-time-exceeded-in-wordpress\/\">Fatal Error: Maximum Execution Time Exceeded in WordPress.<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, one of our users getting error when uploading large images in WordPress. Many users face this error when trying to upload larger images in WordPress. It happens due to the file size limit. In this article, we will guide you how to fix this and upload large images in WordPress. [&#8230;]<\/p>\n<p><a class=\"understrap-read-more-link\" href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/\">Continue Reading&#8230;<\/a><\/p>\n","protected":false},"author":19,"featured_media":2368,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,14,13],"tags":[],"class_list":["post-3561","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-linux","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Upload Large Images in WordPress - cPanel Plesk<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Upload Large Images in WordPress - cPanel Plesk\" \/>\n<meta name=\"twitter:description\" content=\"Recently, one of our users getting error when uploading large images in WordPress. Many users face this error when trying to upload larger images in WordPress. It happens due to the file size limit. In this article, we will guide you how to fix this and upload large images in WordPress. [...]Continue Reading...\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/wordpress-e1449568977205.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"samama\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/\"},\"author\":{\"name\":\"samama\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\"},\"headline\":\"How to Upload Large Images in WordPress\",\"datePublished\":\"2016-03-04T13:14:28+00:00\",\"dateModified\":\"2021-02-06T06:36:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/\"},\"wordCount\":405,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/wordpress-e1449568977205.jpg\",\"articleSection\":[\"Cpanel\",\"Linux\",\"WordPress\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/\",\"name\":\"How to Upload Large Images in WordPress - cPanel Plesk\",\"isPartOf\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/wordpress-e1449568977205.jpg\",\"datePublished\":\"2016-03-04T13:14:28+00:00\",\"dateModified\":\"2021-02-06T06:36:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#primaryimage\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/wordpress-e1449568977205.jpg\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/wordpress-e1449568977205.jpg\",\"width\":200,\"height\":200},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/cpanelplesk.com\/wp62\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Upload Large Images in WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#website\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/\",\"name\":\"cPanel Plesk\",\"description\":\"Blog on famous hosting control panels\",\"publisher\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13\",\"name\":\"Farooq Omer\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"contentUrl\":\"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png\",\"width\":300,\"height\":44,\"caption\":\"Farooq Omer\"},\"logo\":{\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465\",\"name\":\"samama\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g\",\"caption\":\"samama\"},\"url\":\"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Upload Large Images in WordPress - cPanel Plesk","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/","twitter_card":"summary_large_image","twitter_title":"How to Upload Large Images in WordPress - cPanel Plesk","twitter_description":"Recently, one of our users getting error when uploading large images in WordPress. Many users face this error when trying to upload larger images in WordPress. It happens due to the file size limit. In this article, we will guide you how to fix this and upload large images in WordPress. [...]Continue Reading...","twitter_image":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/wordpress-e1449568977205.jpg","twitter_misc":{"Written by":"samama","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#article","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/"},"author":{"name":"samama","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465"},"headline":"How to Upload Large Images in WordPress","datePublished":"2016-03-04T13:14:28+00:00","dateModified":"2021-02-06T06:36:08+00:00","mainEntityOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/"},"wordCount":405,"commentCount":0,"publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/wordpress-e1449568977205.jpg","articleSection":["Cpanel","Linux","WordPress"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/","url":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/","name":"How to Upload Large Images in WordPress - cPanel Plesk","isPartOf":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#website"},"primaryImageOfPage":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#primaryimage"},"image":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#primaryimage"},"thumbnailUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/wordpress-e1449568977205.jpg","datePublished":"2016-03-04T13:14:28+00:00","dateModified":"2021-02-06T06:36:08+00:00","breadcrumb":{"@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#primaryimage","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/wordpress-e1449568977205.jpg","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2015\/06\/wordpress-e1449568977205.jpg","width":200,"height":200},{"@type":"BreadcrumbList","@id":"https:\/\/cpanelplesk.com\/wp62\/how-to-upload-large-images-in-wordpress\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/cpanelplesk.com\/wp62\/"},{"@type":"ListItem","position":2,"name":"How to Upload Large Images in WordPress"}]},{"@type":"WebSite","@id":"https:\/\/cpanelplesk.com\/wp62\/#website","url":"https:\/\/cpanelplesk.com\/wp62\/","name":"cPanel Plesk","description":"Blog on famous hosting control panels","publisher":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/cpanelplesk.com\/wp62\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/c78ae1cf9451a09592fb9697d69c0c13","name":"Farooq Omer","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","contentUrl":"https:\/\/cpanelplesk.com\/wp62\/wp-content\/uploads\/2020\/11\/cpanelplesk.png","width":300,"height":44,"caption":"Farooq Omer"},"logo":{"@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/"}},{"@type":"Person","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/b5c17eff2915a029433dfd2d5a6e8465","name":"samama","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/cpanelplesk.com\/wp62\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5ad71c1d187b45a3c1a68698160b5f6d?s=96&d=mm&r=g","caption":"samama"},"url":"https:\/\/cpanelplesk.com\/wp62\/author\/samama\/"}]}},"_links":{"self":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/3561","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/users\/19"}],"replies":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/comments?post=3561"}],"version-history":[{"count":0,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/posts\/3561\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media\/2368"}],"wp:attachment":[{"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/media?parent=3561"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/categories?post=3561"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cpanelplesk.com\/wp62\/wp-json\/wp\/v2\/tags?post=3561"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}