Removed target _blank.
Fixed issue with error message for upload.