https://www.redmine.org/https://www.redmine.org/favicon.ico?16793021292012-04-06T07:01:18ZRedmineRedmine - Defect #10312: Can not attach empty files.https://www.redmine.org/issues/10312?journal_id=372402012-04-06T07:01:18Zfangzheng (方正)
<ul></ul><p>Empty attachment is considered as invalid file in some other bug tracking system.<br />Maybe redmine has a similar thought?</p> Redmine - Defect #10312: Can not attach empty files.https://www.redmine.org/issues/10312?journal_id=542222014-01-10T18:48:11ZMichael Esemplare
<ul></ul><p>Affects current versions also (2.4)</p>
<p>While an empty file is not attached, it is still being databased.</p>
<pre>
Started POST "/uploads.js?attachment_id=1&filename=My_Empty_File.txt" for 192.168.56.101 at Mon Jan 06 14:47:36 +0000 2014
Processing by AttachmentsController#upload as JS
Parameters: {"attachment_id"=>"1", "filename"=>"My_Empty_File.txt"}
Current user: michael (id=3)
Rendered attachments/upload.js.erb (0.4ms)
Completed 200 OK in 62.4ms (Views: 1.2ms | ActiveRecord: 57.4ms)
Started POST "/documents/3/add_attachment" for 192.168.56.101 at Mon Jan 06 14:48:33 +0000 2014
Processing by DocumentsController#add_attachment as HTML
Parameters: {"id"=>"3", "authenticity_token"=>"aTwertwERTW34tT+trwetW41tqwtWQER23=", "attachments"=>{"1"=>{"filename"=>"My_Empty_File.txt", "description"=>"Describing empty file", "token"=>"64."}}, "utf8"=>"?", "commit"=>"Add"}
Current user: michael (id=3)
Redirected to http://192.168.56.102/documents/3
Completed 302 Found in 10.0ms (ActiveRecord: 0.7ms)
Started GET "/documents/3" for 192.168.56.101 at Mon Jan 06 14:48:33 +0000 2014
Processing by DocumentsController#show as HTML
Parameters: {"id"=>"3"}
Current user: michael (id=3)
Rendered attachments/_links.html.erb (6.6ms)
Rendered attachments/_form.html.erb (1.8ms)
Rendered documents/show.html.erb within layouts/base (14.5ms)
Completed 200 OK in 43.2ms (Views: 32.1ms | ActiveRecord: 1.8ms)
</pre><br />Item in table:
<ul>
<li>id: 61</li>
<li>container_id: "" </li>
<li>container_type: "" </li>
<li>filename: My_Empty_File.txt</li>
<li>disk_filename: "" </li>
<li>filesize: 0</li>
<li>content_type: "" </li>
<li>digest: "" </li>
<li>downloads: 0</li>
<li>author_id: 3</li>
<li>created_on: 2014-01-06 13:59:26</li>
<li>description: "" (Empty even if added a description)</li>
<li>disk_directory: ""</li>
</ul> Redmine - Defect #10312: Can not attach empty files.https://www.redmine.org/issues/10312?journal_id=628552015-04-06T14:12:12ZGo MAEDA
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Closed</i></li><li><strong>Resolution</strong> set to <i>Duplicate</i></li></ul><p>Closing as duplicate of <a class="issue tracker-1 status-5 priority-4 priority-default closed" title="Defect: Attachments with size zero are ignored (Closed)" href="https://www.redmine.org/issues/5969">#5969</a>.<br />Thank you for reporting this issue.</p> Redmine - Defect #10312: Can not attach empty files.https://www.redmine.org/issues/10312?journal_id=628562015-04-06T14:12:30ZGo MAEDA
<ul><li><strong>Is duplicate of</strong> <i><a class="issue tracker-1 status-5 priority-4 priority-default closed" href="/issues/5969">Defect #5969</a>: Attachments with size zero are ignored</i> added</li></ul>