I'm submitting a ... (check one with "x")
[x] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
Current behavior
I set up a fileupload with maxFileSize property to 1Mb. Both specifying explicitly and not specifying at all the two messages properties for an invalid file size upload, nothing happens. I even tried tro add a p-growl to my template, but yet I cannot display this message.
I'm using the last version of primeNg.
Expected behavior
Standing to the documentation, it should appear a growl message telling the text passed through the two properties.
Unable to replicate, please provide a test case based on plunkr below and we鈥檒l review again.
I had the same problem. Then I noticed that you need the "advanced" mode for displaying the error messages concerning file size or type.
@cagataycivici Is it possible to show invalidFileSizeMessageSummary or the other ones in basic mode? I tried catching it in all events, but with no success.. I just need one button to upload a photo, but I really would like to show when file size is to big.
Thanks @xtoff for pointing out the cause for this issue, I didn't notice that one.
Yes, it would be nice to have that message feature for all kind of fileUpload modes.
This should not be closed, when in basic mode you should be able to pick up the error messages and handle them accordingly
+1. This issue should be open as error messages that apply to basic mode should always be displayed or at least one of the callbacks should be called so that we can interact with it.
Bug still persist, when the mode is 'basic'. This should not be closed.
Most helpful comment
Bug still persist, when the mode is 'basic'. This should not be closed.