But how can you check the size of an arbitrary URL before downloading it?
Discussion
Can you abort download after 50kb?
curl --max-filesize 51200 $URL
This is an interesting idea!
HEAD request
I guess most file hosts will probably support this, but not all will, and the ones that don’t are also probably the ones that care most about optimization 😅
Legit. Btw, as someone else suggested, truncating should work. Or just download it and trash it way, caching a void pic for a while. The purpose is discouraging the use of fat pics.