Input.getUploadError
Input.getUploadError() -> string
Description
Return the error message for the most recent call to uploadedImage
or uploadedFile
.
Return ''
if there was no error.
$path = Input.uploadedImage('photo', dir'photos', 300, 300) //= Ex: 'photos/fjwgSj73Fjs4q434q.jpg' if !$path { print(Input.getUploadError()) }