trying to fix upload issue; added alert on upload error