handle edge case with uploading files of size 0