I am doing a simple thumbnail generator, no problem to generate the thumbnail, I am using PHP, file_get_contents to get the remove image content.
I am wondering if there is some security issue to download the file content like this (with cURL or file_get_contents).
- How can I limit the file size and stop the download at X Mo?
- How can I check the binary content has no dangerous code?
- Maybe there is another technologie than PHP fitting my needs?
Thanks