ForestAdmin / lumber

Install Forest Admin in minutes.
https://www.forestadmin.com
MIT License
2.08k stars 106 forks source link

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

Open neokaiyuan opened 5 years ago

neokaiyuan commented 5 years ago

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 commented 5 years ago

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...