I have created a simple file uploader using Phoenix LiveView, but I have a question regarding entry validation. I have been able to detect files that are too large or have unacceptable file types and output error messages, but I don’t know how to alert the user when a zero-byte file is about to be uploaded.
It appears that Phoenix LiveView simply ignores such files. This may be an intended specification rather than a bug, but I would like to output an error. What should I do?
The version of Phoenix LiveView is 0.17.6.