Uploading a file in Wordpress - wordpress

New wordpress user.
I am trying to upload a file in WordPress using the Media > Add New -- Option but when I click upload I get the following error:
The uploaded file could not be moved to wp-content/uploads.
I have Wordpress 5.3.2 installed locally on my system using XAMPP.
I have tried almost all the methods mentioned in other posts, including changing the permissions in the terminal using
chmod 755 uploads
This has no change whatsoever.
PS: I have created the uploads folder manually.
Any help is appreciated.

Related

Wordpress cant upload to wp-content/upload

So a client asked to make some changes to his wordpress site, I can install and run plugins, but when I try to put some images or pdf files into the media it gives me the following error: "cant upload to wp-content/upload". I have created an admin user but cant upload any media.
Check if your "uploads" folder has the right permissions.
It should be at least 755.
Uploads folder is located at /wp-content/uploads

Can't Upload Images or Plugins via Wordpress Admin

I have a website that I just transferred from one server to another. I did this by copying all the files via FTP from the old server to my computer and then to the new server. I changed the URL in Settings to the new url and I downloaded a copy of the database. I then uploaded the database to the new server and changed all the database info in the wp-config file. Afterwards I used Velvet Blues Update URLs to make sure all the URLs have been changed in the database.
After doing all the the website is working fine. I could update my plugins and my WordPress core files that needed updated.
The problem is now I can't upload a plugin from my computer or any media files like images. When uploading an image, I get this message:
“image.jpg” has failed to upload.
Unable to create directory uploads/2017/03. Is its parent directory writable by the server?
I checked and this directory is already on the server. In FTP I changed the folder permissions to all be set to 775.
I then tried to change the folder structure for media files to not be broken into month/date folders and I get this message:
“image.jpg” has failed to upload.
Unable to create directory uploads. Is its parent directory writable by the server?
I know this directory exists and is set to 775. To double check I also change the wp-content directory to the same permissions.
What am I doing wrong here? Why can't I upload images and plugins via the WordPress backend?
I actually think I figured this out. I went into Settings -> Media and noticed there was a box that says Store Uploads to This Folder and had a folder for the old website. I deleted the information that was in that box and updated the settings and now it works!
I had this exact issue today. After much troubleshooting, I solved this images not uploading issue -- specifically, when I clicked the upload button, no dialog window appeared. As a new WordPress installation, the dashboard was displaying asking if this was going to be a business or personal site. When I clicked I DON'T NEED ANY HELP, then I saw the normal dashboard with WooCommerce module displayed and I was able to upload media files and images from my hard drive.
I'm posting in case this answer can help someone else having this very weird problem. Also, it is possible that a plugin like OpinMonster might be what generated that "business or personal" message.

Folder permissions for custom Wordpress uploads folder

I have created a new Wordpress website on my server and done everything as I normally would (nothing fancy or custom, just upload theme, a couple of plugins etc.) except I wanted a custom file path to my media folder.
I have created the folder '/public_html/i', updated my .htaccess file, updated the Setting > Media section in Wordpress with the file path and all is working fine.
My issue is that I do not want the uploads folder to be visible by navigating to the URL (www.site.com/i/).
If I change the folder permissions to execute only for group / world (711) the images become unavailable / unviewable and although I can still upload they show as broken images.
If I set to execute and read (755) the images and uploads work fine but the folder can be viewed by typing in the URL.
What are the correct permissions I should be using for a custom uploads folder to make images on the site viewable but the containing folder itself not?
Note that this is a site that will regularly have new images uploaded to it, so I would also need to be able to upload without having to change the permissions each time, which is one solution I have found online.
Thanks in advance for any help.
Add the following to your .htaccess file with the WordPress .htaccess instructions:
Options -Indexes

Wordpress media library don't show files manually added in upload folder

I'm very new to Wordpress. I just started working locally (using XAMPP on Ubuntu 14.04) when my HD crashed and i had to reinstall everything.
I'm pretty sure that before crash i was able to "upload" media simply by moving files into upload folder using a file manager (i'm sure i also added an upload/bg subfolder using shell). To see the new files into the media library i just had to refresh the media-upload page.
Now, after startover (ubuntu 16.04, lamp instead of XAMPP, WP 4.5.3 - can't remember old version) i cannot see copied media files anymore in media library.
Of course files are there (in the upload folder), both uploaded and copied, and i can see them using any browser (url like localhost/mysite/wp-content/uploads/myimg.jpg is working fine), but in media library i only see the uploaded ones.
Maybe in my old setting i installed a plugin that i forgot?
As far as I know:
WordPress stores all uploaded images in the wp-content/uploads folder in sub-folders for each month. It also stores a unique reference to the uploaded image in the WordPress database.
You can install a media file manager plugin
such as WP File Manager
But be care about it after install. It can modify all of your files (even out of uploads folder) and if an user (or hacker) can get high permission, it will be so dangerous.

Uploaded File could not be moved

I am working with Mac Book Pro with OS X 10.9.4
I am trying to upload the theme in Wordpress but it's showing me this message
"The uploaded file could not be moved to wp-content/uploads/2014/09."
I have already changed the permission's of the folder htdocs, mywebsite folder, upload folder also configured http.conf file of apache server.
I am strucked with this issue from last 2 hours, read many blog's all are saying to change the permission rights but not working
if you can't solve the problem
please try
go to setting wordpress - media
don't cheklist Organize my uploads into month- and year-based folders
save changes
i solve the problem

Resources