Semi-fixed the reloading issue after image
Prepare the file upload