error message fix for upload