最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

media - Can't upload files 1MB+

matteradmin5PV0评论
Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 6 years ago.

Improve this question

I can't upload files with more than 1MB, but i haven't change any configuration. I have a lot of files with more than 5MB uploaded before, but i don't know why now i can't... The error is "Failed to write file to disk."

In my media page says max file size is 100MB. Any idea how i can solve this?

I am newbie with WordPress, and never see this problem before... I read this topic here but this doesn't helped me, i installed this plugin to try improve my limit, but this changed my limit to 0B.

Closed. This question is off-topic. It is not currently accepting answers.

Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?

Closed 6 years ago.

Improve this question

I can't upload files with more than 1MB, but i haven't change any configuration. I have a lot of files with more than 5MB uploaded before, but i don't know why now i can't... The error is "Failed to write file to disk."

In my media page says max file size is 100MB. Any idea how i can solve this?

I am newbie with WordPress, and never see this problem before... I read this topic here but this doesn't helped me, i installed this plugin to try improve my limit, but this changed my limit to 0B.

Share Improve this question asked Apr 1, 2019 at 12:22 Matheus RibeiroMatheus Ribeiro 11 bronze badge 8
  • 2 Is there any chance you've hit a limit on your hosting account, i.e. you have run out of disk space or disk quota? – Rup Commented Apr 1, 2019 at 12:32
  • this article will surely help wpbeginner/wp-tutorials/… – Raashid Din Commented Apr 1, 2019 at 12:34
  • There also might be an upload file size limit enforced by the webhost. – Loren Rosen Commented Apr 1, 2019 at 16:08
  • Tips from your link @RaashidDin doesn't worked for me – Matheus Ribeiro Commented Apr 1, 2019 at 16:21
  • How can i see limit from my host account? I don't know – Matheus Ribeiro Commented Apr 1, 2019 at 16:22
 |  Show 3 more comments

1 Answer 1

Reset to default 1

First and most important step. Check and make sure your hosting account has the available space. Login to your hosting control panel and check how much disk space you have used.

Next verify your PHP settings are actually what you have tried to set them to (this will tell you the limits set in PHP):

Create a PHP file in your root WordPress directory:

phpinfox823842832.php

Inside that PHP file put:

<?php
phpinfo();

Then browse to http://yourdomain/phpinfox823842832.php

You can review the PHP settings to verify the overrides you are using are actually being used. After doing this, remove that file.

Review this site for more details on checking and setting upload limits in WordPress: https://kinsta/blog/wordpress-maximum-upload-file-size/#

Next check your folder permissions, using FTP or your web hosting control panel, make sure that directories are set to 755: https://www.hostpapa/knowledgebase/fix-upload-failed-write-file-disk-error-wordpress/

Have you tried uploading files via FTP to verify that you can actually upload to your hosting account?

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far