Version: v0.6.0 - Beta.  We welcome contributors & feedback.  THanks!

Input.lastUploadError

Input.lastUploadError()

Description

Return the error message for the most recent call to uploadedImage or uploadedFile.

Return '' if there was no error.

$path = Input.uploadedImage('photo', 'photos', 300, 300);
//= e.g. 'data/files/photos/fjwgSj73Fjs4q434q.png'

if !$path {
    print(Input.lastUploadError());
}

See Also