Submits token when uploading a file