Added error message for empty upload