Get token before upload
Merge pull request #1 from xtang/get-token-before-upload

Get token before upload