{"id":3687,"date":"2020-07-28T18:22:44","date_gmt":"2020-07-28T16:22:44","guid":{"rendered":"https:\/\/esferas.org\/msqlu\/?p=3687"},"modified":"2020-08-12T13:11:17","modified_gmt":"2020-08-12T11:11:17","slug":"php-y-archivos-grandes","status":"publish","type":"post","link":"https:\/\/esferas.org\/msqlu\/2020\/07\/28\/php-y-archivos-grandes\/","title":{"rendered":"php y archivos grandes"},"content":{"rendered":"<div class='__iawmlf-post-loop-links' style='display:none;' data-iawmlf-post-links='[{&quot;id&quot;:286,&quot;href&quot;:&quot;https:\\\/\\\/docs.nextcloud.com\\\/server\\\/18\\\/admin_manual\\\/configuration_files\\\/big_file_upload_configuration.html?highlight=php%20memory&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20260415113704\\\/https:\\\/\\\/docs.nextcloud.com\\\/server\\\/18\\\/admin_manual\\\/configuration_files\\\/big_file_upload_configuration.html?highlight=php%20memory&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;},{&quot;id&quot;:287,&quot;href&quot;:&quot;https:\\\/\\\/www.php.net\\\/manual\\\/es\\\/faq.using.php#faq.using.shorthandbytes&quot;,&quot;archived_href&quot;:&quot;https:\\\/\\\/web-wp.archive.org\\\/web\\\/20260415113628\\\/https:\\\/\\\/www.php.net\\\/manual\\\/es\\\/faq.using.php&quot;,&quot;redirect_href&quot;:&quot;&quot;,&quot;checks&quot;:[],&quot;broken&quot;:false,&quot;last_checked&quot;:null,&quot;process&quot;:&quot;done&quot;}]'><\/div>\n<p>Y es que no nos queda otra que ir haciendo ajustes seg\u00fan aparecen problemas. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p>Pues ahora mismo no recuerdo si ha sido en WordPress o en Nextcloud donde he visto el aviso de que PHP ten\u00eda limitada la subida de archivos a 512Mb. Supongo que se referir\u00e1 a subidas de una tacada con operaciones <em>POST<\/em> porque hasta ahora no he tenido problemas poniendo im\u00e1genes grandes en el blog o sincronizando archivos enormes con la nube. <\/p>\n\n\n\n<p>Pero por si acaso he buscado en la documentaci\u00f3n y <a href=\"https:\/\/docs.nextcloud.com\/server\/18\/admin_manual\/configuration_files\/big_file_upload_configuration.html?highlight=php%20memory\" target=\"_blank\" rel=\"noreferrer noopener\">he encontrad<\/a>o que se pueden definir algunos par\u00e1metros concretamente para este caso: <\/p>\n\n\n\n<pre title=\"\/etc\/php\/7.3\/apache2\/php.ini\" class=\"wp-block-code\"><code lang=\"php\" class=\"language-php\">; Par\u00e1metros para subida HTTP \nfile_uploads = On\nupload_tmp_dir = \/var\/tmp\/php_big_files\nupload_max_filesize = 2G\nmax_file_uploads = 20<\/code><\/pre>\n\n\n\n<p>Un par de detalles a tener en cuenta. Las dimensiones tienen ciertas abreviaturas explicadas en <a href=\"https:\/\/www.php.net\/manual\/es\/faq.using.php#faq.using.shorthandbytes\" target=\"_blank\" rel=\"noreferrer noopener\">esta p\u00e1gina<\/a> y el directorio debe ser creado con permisos de escritura del usuario PHP (en este caso coincide con <em>www-data<\/em> que es el que usa <em>apache2<\/em>).<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Y es que no nos queda otra que ir haciendo ajustes seg\u00fan aparecen problemas.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","webmentions_disabled_pings":false,"webmentions_disabled":false,"footnotes":""},"categories":[2],"tags":[75,705,28,451],"class_list":["post-3687","post","type-post","status-publish","format-standard","hentry","category-software","tag-apache","tag-nextcloud","tag-php","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/posts\/3687","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/comments?post=3687"}],"version-history":[{"count":3,"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/posts\/3687\/revisions"}],"predecessor-version":[{"id":3690,"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/posts\/3687\/revisions\/3690"}],"wp:attachment":[{"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/media?parent=3687"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/categories?post=3687"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/esferas.org\/msqlu\/wp-json\/wp\/v2\/tags?post=3687"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}