Modify ↓
      
#2999 closed enhancement (fixed)
Attempting to attach an empty file will return a vague error message.
| Reported by: | Owned by: | Christian Boos | |
|---|---|---|---|
| Priority: | low | Milestone: | 0.10 | 
| Component: | ticket system | Version: | 0.9.4 | 
| Severity: | trivial | Keywords: | attachment | 
| Cc: | m@… | Branch: | |
| Release Notes: | |||
| API Changes: | |||
| Internal Changes: | |||
Description
1) Create an empty text file.
2) Try to attach it to a Trac ticket.
—> Notice the error message you receive doesn't give you any hint as to why the upload failed:
Error No file uploaded
Attachments (0)
Change History (4)
comment:1 by , 20 years ago
| Milestone: | → 0.10 | 
|---|---|
| Owner: | changed from to | 
| Priority: | normal → low | 
| Severity: | normal → trivial | 
| Type: | defect → enhancement | 
comment:2 by , 20 years ago
| Cc: | added | 
|---|
Well, yes. Maybe there is a reason out there where an empty file is needed by someone. So the best solution would be to allow zero length files.
comment:3 by , 20 years ago
| Resolution: | → fixed | 
|---|---|
| Status: | new → closed | 
Well, most of the time uploading an empty file would be done by mistake. If an empty file is really needed as a placeholder or such (?) one can take the extra pain to create a file with a linefeed inside.
  Note:
 See   TracTickets
 for help on using tickets.
    


  
Ok, something like
Can't upload empty fileswould probably be a bit better.