check empty file when send a file payload