Something to cheer I hope.
I too have the same issue with file being saved as empty file. Surprisingly it is not only Firefox. Even Microsoft Word on Wine couldn't save/ saved a document with 0 bytes. It can be concluded that this may be an OS issue.