{"id":4879,"date":"2022-12-17T15:08:43","date_gmt":"2022-12-17T18:08:43","guid":{"rendered":"http:\/\/wiki3.locaweb.com.br\/?post_type=ht_kb&#038;p=4879"},"modified":"2023-11-22T15:32:59","modified_gmt":"2023-11-22T18:32:59","slug":"como-alterar-o-limite-de-upload-de-midia-hospedagem-de-sites","status":"publish","type":"ht_kb","link":"https:\/\/www.locaweb.com.br\/ajuda\/wiki\/como-alterar-o-limite-de-upload-de-midia-hospedagem-de-sites\/","title":{"rendered":"Como alterar o limite de upload de m\u00eddia &#8211; Hospedagem de Sites"},"content":{"rendered":"    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\"><b>Informa\u00e7\u00e3o!<\/b><\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tVeja neste artigo os casos que arquivo <strong>php.ini<\/strong> do wordpress vem instalado no servi\u00e7o com o limite de upload de 1MB e como aumentar.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n    \t\t<div class=\"hts-messages hts-messages--danger  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\">Erro!<\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tIsso pode causar falha ao fazer upload de m\u00eddia em seu wordpress, retornando o erro &#8220;O arquivo ultrapassa o limite de tamanho de arquivo&#8230;&#8221; ou at\u00e9 mesmo &#8220;<strong>Allowed memory size Exhausted<\/strong>&#8221; em ingl\u00eas.\u00a0    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<ul>\n<li>Veja abaixo como alterar em seu arquivo <strong>php.ini<\/strong> esse limite.<\/li>\n<li>Ao tentar inserir um arquivo em seu WordPress que ultrapasse o tamanho limite configurado, a mensagem abaixo ser\u00e1 apresentada:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4914\" src=\"https:\/\/ajuda.locaweb.com.br\/wp-content\/uploads\/2018\/07\/01_aumentarlimitememoria_locaweb.png\" alt=\"\" width=\"866\" height=\"587\" srcset=\"https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2018\/07\/01_aumentarlimitememoria_locaweb.png 866w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2018\/07\/01_aumentarlimitememoria_locaweb-300x203.png 300w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2018\/07\/01_aumentarlimitememoria_locaweb-768x521.png 768w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2018\/07\/01_aumentarlimitememoria_locaweb-50x34.png 50w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2018\/07\/01_aumentarlimitememoria_locaweb-60x41.png 60w, https:\/\/www.locaweb.com.br\/ajuda\/wp-content\/uploads\/2018\/07\/01_aumentarlimitememoria_locaweb-100x68.png 100w\" sizes=\"auto, (max-width: 866px) 100vw, 866px\" \/><\/p>\n<ul>\n<li>Voc\u00ea ter\u00e1 duas op\u00e7\u00f5es: <strong>subir um arquivo menor<\/strong> ou <strong>alterar o tamanho<\/strong> padr\u00e3o.<\/li>\n<\/ul>\n<h6>Video Tutorial<\/h6>\n<p><iframe loading=\"lazy\" title=\"YouTube video player\" src=\"https:\/\/www.youtube.com\/embed\/l7vDGDMcAe8?si=DA5d5xBodMGvZi12\" width=\"560\" height=\"315\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n<h6>Altera\u00e7\u00e3o via php.ini<\/h6>\n<ul>\n<li>Acesse o FTP de seu site e localize o arquivo php.ini:<\/li>\n<li>Baixe o arquivo e procure pelas linhas:<\/li>\n<\/ul>\n<pre style=\"padding-left: 30px;\">upload_max_filesize = 1M\r\npost_max_size = 8M<\/pre>\n<ul>\n<li>No primeiro par\u00e2metro, altere o tamanho de <strong>1M<\/strong> para <strong>50M<\/strong> ou o tamanho necess\u00e1rio.<\/li>\n<li>No segundo par\u00e2metro, altere o tamanho de <strong>8M<\/strong> para <strong>50M<\/strong> ou tamb\u00e9m o tamanho necess\u00e1rio.<\/li>\n<li>Salve o php.ini, atualize-o em seu FTP e teste novamente o upload de arquivos em seu WordPress.<\/li>\n<\/ul>\n    \t\t<div class=\"hts-messages hts-messages--info  hts-messages--withtitle hts-messages--withicon \"   >\r\n    \t\t\t<span class=\"hts-messages__title\"><b>Conhe\u00e7a!<\/b><\/span>    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tAproveite e conhe\u00e7a outros produtos da Locaweb, como o Clic Lead, <a href=\"https:\/\/www.locaweb.com.br\/clic-lead\/\" target=\"_blank\" rel=\"noopener noreferrer\">clique aqui<\/a> e saiba mais!    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n","protected":false},"excerpt":{"rendered":"<p>Veja abaixo como alterar em seu arquivo php.ini esse limite. Ao tentar inserir um arquivo em seu WordPress que ultrapasse o tamanho limite configurado, a mensagem abaixo ser\u00e1 apresentada: Voc\u00ea ter\u00e1 duas op\u00e7\u00f5es: subir um arquivo menor ou alterar o tamanho padr\u00e3o. Video Tutorial Altera\u00e7\u00e3o via php.ini Acesse o FTP&#8230;<\/p>\n","protected":false},"author":6,"comment_status":"closed","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[119],"ht-kb-tag":[418],"class_list":["post-4879","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-hospedagem-de-sites","ht_kb_tag-categoriahospedagem"],"_links":{"self":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/4879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/comments?post=4879"}],"version-history":[{"count":14,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/4879\/revisions"}],"predecessor-version":[{"id":34081,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb\/4879\/revisions\/34081"}],"wp:attachment":[{"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/media?parent=4879"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-category?post=4879"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/www.locaweb.com.br\/ajuda\/wp-json\/wp\/v2\/ht-kb-tag?post=4879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}