Get token before upload