WordPress (wp-cli): Unable to import file. Permissions error?
-
I am running WordPress on a Raspbian Buster LEMP server. For the most part, everything is working fine except some problems with uploading photos using the command line interface. I have many pictures in my servers ~/Pictures folder that I am trying to upload to wordpress using the command line interface.
I navigate to the root directory of my wordpress installation and run the following command:
wp media import ~/Pictures/*.jpg
To which I get the following errors:
Warning: Unable to import file '/home/Danran/Pictures/img_0754.jpg'. Reason: The uploaded file could not be moved to wp-content/uploads/2020/03.
for each corresponding file. I am fairly certain that this is some sort of permissions error, but because I am a noob, I don’t want to risk tinkering around with permissions in my wordpress directory without some sort of guidance by a pro.Please let me know how I can get rid of this error and successfully import my photos to wordpressing using the wp-cli. Thank you kindly for any and all answers/suggestions!
The topic ‘WordPress (wp-cli): Unable to import file. Permissions error?’ is closed to new replies.