I add a protection to not try to upload a file that does not exist

We add a protection to check if the file that we want to upload exist on the given path