Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Image uploader sending GET request instead of PUT request as per documentation #186

Open
neokaiyuan opened this issue Dec 12, 2018 · 1 comment

Comments

@neokaiyuan
Copy link

As per Forest Docs, I expect Forest to send my API server a PUT request that I can then extract image data from. Instead Forest sends my API server a GET request with the image data in the URL. Nginx throws a 414 error because the URL string is too long.

How do I get Forest Admin to send me a PUT request as specified in the docs?

@Gargamel1989
Copy link

Actually it does send a PUT request, but only after you confirm the cropping and click "Apply Changes"

The problem (imo) is that the prefix you can set in the field settings is also prefixed in front of the base64 attribute put in the source of the preview image. This can make lumber make get requests to you server containing very large base64 encoded images in the url...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants