tests for upload when no file
Fix for upload when no file