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