/bin/oops/TWiki/WebHome?template=oopsattention;def=zero_size_upload
gives:
Uploaded file %PARAM1% does not exist or is empty
A more correct message would be:
You must select a file to upload
AC
Yes, but what if the file
is of zero size?
--
TWiki:Main.AntonAylward
Add a note:
Note: empty files cannot be uploaded. --
AC
Well can't we test for file existance separate to file size > 0?
--
MC
I think the current message is OK, given the current logic. The logic could be improved, yes, so I'm only going to defer this and not close it.
CC
Undeferred, post Dakar
CC
One reflection, i don't see anything wrong with either the logic or the message.
Discarding.
CC
The system acts stupid, while blaming the user. Who has to figure what out?
It would be very informing that the file is zero bytes and thus cannot be uploaded.
AC
OK, this is one of those cases where it maybe looks ok to a native English speaker, but has a double meaning for a second language speaker, however fluent.
I changed the message.
CC