{"id":132121,"date":"2022-09-06T13:47:28","date_gmt":"2022-09-06T08:17:28","guid":{"rendered":"https:\/\/git-staging.wpastra.com\/?post_type=docs&#038;p=132121"},"modified":"2023-01-18T13:10:27","modified_gmt":"2023-01-18T07:40:27","slug":"uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini","status":"publish","type":"docs","link":"https:\/\/git-staging.wpastra.com\/es\/docs\/uploaded-file-exceeds-the-upload_max_filesize-directive-in-php-ini\/","title":{"rendered":"El archivo subido excede la directiva upload_max_filesize en php.ini"},"content":{"rendered":"<p>La mayor\u00eda de los proveedores de hosting establecen l\u00edmites a la memoria PHP para ejecutar aplicaciones. El archivo cargado excede la directiva upload_max_filesize en php.ini es un error que se produce en su sitio web WordPress cuando carga un archivo que excede las limitaciones establecidas por su servidor web.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">C\u00f3mo solucionar el error upload_max_filesize<\/h3>\n\n\n\n<p>As you might have guessed, the solution involves increasing the default limit of upload_max_filesize. Let\u2019s look closely at it and see what steps we can take to fix this error.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">M\u00e9todo 1. Editar el archivo .htaccess<\/h4>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Inicie sesi\u00f3n en CPanel y vaya al Administrador de archivos en la secci\u00f3n Archivos.<\/li>\n\n\n\n<li>Localice el&nbsp;<strong>.htaccess<\/strong>&nbsp;y haga clic con el bot\u00f3n derecho para&nbsp;<strong>Editar<\/strong>.<\/li>\n\n\n\n<li>A\u00f1ada la siguiente l\u00ednea al final del archivo y guarde los cambios.<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>php_value upload_max_filesize 256M<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">M\u00e9todo 2. Editar el archivo wp-config.php<\/h4>\n\n\n\n<p>Otra forma de solucionar el error upload_max_filesize en php.ini es modificando el archivo wp-config.php en el directorio ra\u00edz.<\/p>\n\n\n\n<p>For that, log in to the CPanel and access public_html to edit the wp_config. php file. Add the following line before the \u201cThat\u2019s all, stop editing! Happy publishing\u201d line:<\/p>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>@ini_set('upload_max_size' , '256M' );<\/code><\/pre>\n\n\n\n<p>Una vez que haya a\u00f1adido el c\u00f3digo, guarde el archivo, actualice su navegador e intente cargarlo de nuevo.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">M\u00e9todo 3. Actualizar php.ini para corregir el error upload_max_filesize<\/h4>\n\n\n\n<p>Si lo desea, siempre puede modificar su configuraci\u00f3n PHP a trav\u00e9s de la herramienta de Configuraci\u00f3n PHP en CPanel.<\/p>\n\n\n\n<p>If you\u2019re using VPS or a different platform, you can try updating php.ini to fix the error. Here\u2019s what you need to do:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to your php.ini file and edit it. If you can\u2019t find it, ask for assistance from your hosting providers.<\/li>\n\n\n\n<li>Localiza el upload_max_filesize y aum\u00e9ntalo cambiando su n\u00famero. Tambi\u00e9n puede aumentar algunas otras limitaciones, como se muestra a continuaci\u00f3n: <\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-code\" data-no-translation=\"\" data-no-auto-translation=\"\"><code>upload_max_filesize = 256M \npost_max_size = 256M \nmemory_limit = 512M \nmax_execution_time = 180<\/code><\/pre>\n\n\n\n<p>Save the file, and that\u2019s it. The error should no longer occur.<\/p>","protected":false},"excerpt":{"rendered":"<p>La mayor\u00eda de los proveedores de hosting establecen l\u00edmites a la memoria PHP para ejecutar aplicaciones. El archivo cargado excede la directiva upload_max_filesize en php.ini es un error que se produce en su sitio web WordPress cuando se carga un archivo que excede las limitaciones establecidas por su servidor web. C\u00f3mo solucionar el error upload_max_filesize Como habr\u00e1s adivinado, [...]<\/p>","protected":false},"author":89,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"docs_category":[1598],"docs_tag":[],"class_list":{"0":"post-132121","1":"docs","2":"type-docs","3":"status-publish","5":"docs_category-troubleshooting"},"spectra_custom_meta":{"wp_last_modified_info":["January 18, 2023 @ 1:10 PM"],"wplmi_shortcode":["[lmt-post-modified-info]"],"_edit_lock":["1674027629:89"],"rank_math_primary_docs_category":["1598"],"rank_math_seo_score":["6"],"_wplmi_last_modified":["2023-01-18 13:10:27"],"rank_math_internal_links_processed":["1"],"_edit_last":["89"],"tap_disable_autolinker":["no"],"tap_autolink_inside_heading":["global"],"tap_autolink_random_placement":["global"],"tap_post_autolinker_limit":["0"],"views":["6144"],"rank_math_analytic_object_id":["1916"],"helpful":["4"],"unhelpful":["3"],"redirects":["1"],"pfd_related_docs":[""],"_trp_automatically_translated_slug_es_ES":["el-archivo-subido-excede-la-directiva-upload_max_filesize-en-php-ini"],"_uag_page_assets":["a:9:{s:3:\"css\";s:2495:\".wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-top svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-top .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape-bottom svg{width: calc( 100% + 1.3px );}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__shape.uagb-container__shape-bottom .uagb-container__shape-fill{fill: rgba(51,51,51,1);}.wp-block-uagb-container.uagb-block-debf2792 .uagb-container__video-wrap video{opacity: 1;}.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1200px);max-width: var(--inner-content-custom-width);width: 100%;flex-direction: column;align-items: center;justify-content: center;flex-wrap: nowrap;row-gap: 0px;column-gap: 0px;}.wp-block-uagb-container.uagb-block-debf2792{box-shadow: 0px 0px   #00000070 ;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;overflow: visible;border-color: inherit;row-gap: 0px;column-gap: 0px;}@media only screen and (max-width: 976px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 1024px);max-width: var(--inner-content-custom-width);width: 100%;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}@media only screen and (max-width: 767px) {.wp-block-uagb-container.uagb-is-root-container .uagb-block-debf2792{max-width: 100%;width: 100%;}.wp-block-uagb-container.uagb-is-root-container.alignfull.uagb-block-debf2792 > .uagb-container-inner-blocks-wrap{--inner-content-custom-width: min( 100%, 767px);max-width: var(--inner-content-custom-width);width: 100%;flex-wrap: wrap;}.wp-block-uagb-container.uagb-block-debf2792{padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;margin-top: 0px !important;margin-bottom: 0px !important;margin-left: 0px;margin-right: 0px;}}\";s:2:\"js\";s:0:\"\";s:18:\"current_block_list\";a:7:{i:0;s:14:\"core\/paragraph\";i:1;s:12:\"core\/heading\";i:2;s:9:\"core\/list\";i:3;s:14:\"core\/list-item\";i:4;s:9:\"core\/code\";i:5;s:14:\"uagb\/container\";i:6;s:14:\"core\/shortcode\";}s:8:\"uag_flag\";b:1;s:11:\"uag_version\";s:10:\"1784353754\";s:6:\"gfonts\";a:0:{}s:10:\"gfonts_url\";s:0:\"\";s:12:\"gfonts_files\";a:0:{}s:14:\"uag_faq_layout\";b:0;}"]},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"mounikak","author_link":"https:\/\/git-staging.wpastra.com\/es\/author\/mounikak\/"},"uagb_comment_info":0,"uagb_excerpt":"Most hosting providers set limits to the PHP memory for running applications. The uploaded file exceeds the upload_max_filesize directive in php.ini is an error that occurs on your WordPress website when you upload a file that exceeds the limitations set by your web server. How to Fix the upload_max_filesize Error As you might have guessed,&hellip;","_links":{"self":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/132121"}],"collection":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/users\/89"}],"replies":[{"embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/comments?post=132121"}],"version-history":[{"count":0,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs\/132121\/revisions"}],"wp:attachment":[{"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/media?parent=132121"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_category?post=132121"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/git-staging.wpastra.com\/es\/wp-json\/wp\/v2\/docs_tag?post=132121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}