Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Cannot Upload Image using URL with period at the end when using REST API

$
0
0

Replies: 0

I have an image URL that has a period at the end of the URL, and when I use this URL when creating a product using the rest api, error shows up with code “woocommerce_product_image_upload_error” and message “Invalid image: Sorry, this file type is not permitted for security reasons.”

My assumption is that the api reads my image as .jpg. instead of .jpg, and that might be the cause of this.

Can anyone help me to solve this?

Million thanks


Viewing all articles
Browse latest Browse all 59525

Trending Articles