Quote:
Originally Posted by Johnny G
You could always limit the size of a file to be uploaded to be <8Mb (or whatever the nominal size of the image is)?
|
It sounds easy, but isn't.
It would require a raw socket connection and manual reading of the file, and stop reading if it has reached 8 MB. Then however, it would be possible to add a timer, too, and abort slow files as well. Also, it would allow to examine the file header before downloading the whole file and thus discard no-image files efficiently. But it would take a bunch of code and yet more options.
Then we remove the CURL code, but we'll loose the redirect features and SSL. Thus, it'll fail with Facebook, Imageshack, Google images, just to name a few.
I would say, it is a no-go.