File size is file API's work, not image API's. Storage will tell you the size of uploaded file just fine.
$size = $request->file('input-name')->getSize();
Source: Documentation of File Uploads
Hey,
I know I can limit user when he is uploading files but I do not want to do that. I had a limit of 6MB per photo, raised it to 9MB not some android phones provide even bigger image files. So, of course, there will be a limit, let's say 15MB per photo max.
When I save this file locally I would like to make sure it is not bigger then let's say 2MB before sending to it DO or S3 storage. What is the best way to approach this? With Intervention, I cannot specify file size so quality + resize is actually hit & miss scenario. What do you guys do usually?
Thanks!
Please or to participate in this conversation.