handle file input upload

Allow user to upload with the <input type="file"> input select as well.
Also added token to the selector as well.