Updates token resource to match with server side token cb.
Restores file value to form dict for upload.