Upload

Fix problem when uploading a file of length 0

To test
 * Create a text file of size 0
 * Upload the file by linking it to a project for example
 * The file should be uploaded and correctly linked.

See https://trac.openmicroscopy.org.uk/ome/ticket/10712