Fix empty file upload result bug