Fix missing token on media upload.