-2
Next I have an application in Arabic that I put a pdf in a register, but when the pdf is too big it of the error, would have as I know up to which PDF size I can use and if the guy put a pdf greater than the limit I show an error message?
-2
Next I have an application in Arabic that I put a pdf in a register, but when the pdf is too big it of the error, would have as I know up to which PDF size I can use and if the guy put a pdf greater than the limit I show an error message?
0
To know the file size using Laravel from version 5.7 you can use the method getSize()
. In previous versions, the method is getClientSize()
. See below for an example:
Laravel < 5.7
$request->file('file')->getClientSize();
Orange >= 5.7
$request->file('file')->getSize();
Behold this documentation for more details.
Browser other questions tagged php laravel heroku
You are not signed in. Login or sign up in order to post.