Uploading file via the WordPress.com API
-
Hello,
I’m trying to upload an image via WP API in node.js environment. I get an error for uploading files only when I’m uploading file via API. The server says the the
wp-contentdirectory is missing and it can’t create the folder.What is the problem? It seems the error is related to wordpress.com settings (an API bug?) which is beyond the API consumer’s capabilities.
The blog address is:
The blog I need help with is: (visible only to logged in users)
-
Well, I have solved the problem. I’m using the official library to Node.js: https://github.com/Automattic/wpcom.js and I need to remove the blog address’s protocol when I create a
siteinstance, i.e. the site address should have been abchinsite.wordpress.com and not https://abchinsite.wordpress.com.Now the image has been uploaded successfully!
-
- The topic ‘Uploading file via the WordPress.com API’ is closed to new replies.