6.0.0-alpha14
7/2/25

[#7216] Attaching an empty file (0 bytes) fails with no feedback
Summary Attaching an empty file (0 bytes) fails with no feedback
Queue DIMP
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners slusarz (at) horde (dot) org
Requester chuck (at) horde (dot) org
Created 08/17/2008 (6163 days ago)
Due
Updated 08/18/2008 (6162 days ago)
Assigned 08/18/2008 (6162 days ago)
Resolved 08/18/2008 (6162 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
08/18/2008 10:39:24 PM Chuck Hagenbuch Comment #6
State ⇒ Resolved
Reply to this comment
Good enough then. Thanks.
08/18/2008 08:38:58 PM Jan Schneider Comment #5 Reply to this comment
I think it was 2)
08/18/2008 07:53:33 PM CVS Commit Comment #4 Reply to this comment
08/18/2008 07:53:12 PM Michael Slusarz Comment #3
State ⇒ Feedback
Reply to this comment
We do display an error - my changes to add the alerts log broke alert 
display on the compose page, which has been fixed.



And we have previously discussed the '0 bytes attachment' issue 
previously (although I couldn't find the discussion with a quick 
search).  IIRC the reason we don't allow 0 byte attachments is either 
1.) it has something to do with the limitation of the PHP upload core 
code and/or 2.) users uploading a file that may be in use on the 
browser-side (i.e. a windows temp file) get instant notification that 
the file they thought they have attached wasn't attached and/or 3.) we 
couldn't think of a situation (outside of testing) why a 0-byte file 
was valid.
08/17/2008 10:59:56 PM Chuck Hagenbuch Comment #1
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ Attaching an empty file (0 bytes) fails with no feedback
Queue ⇒ DIMP
Assigned to Michael Slusarz
Milestone ⇒
Patch ⇒ No
State ⇒ Assigned
Reply to this comment
Try attaching an empty file (created with touch, for example). The 
file isn't attached, and there's no feedback. Is there a reason we 
would want to disallow attaching empty files? I know the use case for 
it is questionable, but I don't see a real reason to disallow it either.

Saved Queries