Added some error checking for if the file isn't sent