fix uploading image from disk
show error during upload