You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 20, 2024. It is now read-only.
When using the api to upload an image like this https://myserver.com/api/1/upload?key=api-key&format=json&source=https%3A%2F%2Fexample.com%2image.jpg the api cannot process the image.
This seems related to this particular bit of code:
At line 61 the $source variable is already plaintext (url decoded). However, the G\getQsParams()['source']; returns an url encoded value and sets the source variable to it.
This is causing the CHV\Image::uploadToWebsite($source); call to return "invalid file type" (since it cannot handle url encoded values)
The text was updated successfully, but these errors were encountered:
When using the api to upload an image like this
https://myserver.com/api/1/upload?key=api-key&format=json&source=https%3A%2F%2Fexample.com%2image.jpg
the api cannot process the image.This seems related to this particular bit of code:
chevereto-free/app/routes/route.api.php
Lines 61 to 63 in 0dce5d5
At line 61 the
$source
variable is already plaintext (url decoded). However, theG\getQsParams()['source'];
returns an url encoded value and sets the source variable to it.This is causing the
CHV\Image::uploadToWebsite($source);
call to return "invalid file type" (since it cannot handle url encoded values)The text was updated successfully, but these errors were encountered: