Problem with upload file (upload with size zero)
When I upload one file, upload without problem (show me ok and show me in the issue's page the file like if should upload ok).
But when I going to folder: "files" the file have size zero.Versions:
- Redmine version: 1.2.1.devel.6316
- Database version: MySql 5.0.51a-3ubuntu5.5
- Ruby version: ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-linux], MBARI 0x8770, Ruby Enterprise Edition 2010.01
- Rails version: rails-2.3.11
I don't have plugins install
#3 Updated by Ethan Fremen over 8 years ago
Ok, I added a line to attachment.rb 's before_save to see what was going on. It appears that the file is written twice, and the second time it fails:
wrote file of size 3479
Attachment Create (0.4ms) INSERT INTO `attachments` (`disk_filename`, `content_type`, `downloads`, `created_on`, `container_id`, `container_type`, `digest`, `filename`, `filesize`, `author_id`, `description`) VALUES
wrote file of size 0
When I back out the change to attachments.rb r6312:
the file is correctly created, but still reports a 0 length file in the UI.
That's as far as I can go to fixing this today.