I know it has been asked over and over again on the mạng internet and i spend hours digging deeper into the trang web. But the no answer so sánh far.

Why we get this error when you upload a file
The uploaded tệp tin could not be moved to lớn wp-content/uploads

  1. I tried various tệp tin persimission on folders and files in the ftp.
  2. Tried a fresh install WP.
  3. I tried this code define( 'UPLOADS', 'wp-content/uploads' );
  4. I tried adding the path in the wp/options.php location for upload_path.
  5. I created the upload thư mục manually, because when i installed WP the wp-content thư mục does not have any thư mục named uploads

But nothing so sánh far..

Local Server
There is no issue so sánh far in the local server.

I am just a beginner and learning WordPress from scratch. The only issue i got stuck is this tệp tin upload thing.

Can anyone help me!

asked Sep 30, năm 2016 at 9:09

2

I experienced this error while preparing an AWS ec2 Bitnami micro-instance configured for WordPress. This approach requires the command-line, so sánh please launch a terminal-session and begin via SSH into the deployed production.

  1. cd into the application document-root:

    /home/bitnami/apps/wordpress/htdocs:

  2. Execute the below command to lớn identify the Apache web-server:

    ps aux | egrep '(apache|httpd)'

    Revealing daemon in this case, as captured within the terminal-output screenshot below:

  3. Ultimately, the below-command remediated the error; users should now have the ability to lớn successfully media-upload nội dung via the WordPress Content Management system/admin-panel:

    sudo chown -R daemon:daemon wp-content

I recommend the following dox for guidance regarding the Linux-commands referenced herein:

  • Finding out what user Apache is running as?
  • what does this line mean on my ps aux ../apache2 -k start

answered Apr 7, 2017 at 15:24

1

Update: Permissions were correct, there was enough storage.

What fixed it for bầm was deleting the month thư mục (08 in my case) and when re-uploading image, trang web recreated the thư mục and it worked fine :)

bueltge

17.1k7 gold badges61 silver badges97 bronze badges

answered Aug 16, 2023 at 15:50