# File/Picture Upload

# Upload to Server

If you want to upload the picture to you own server, you need to configure the picture address, and you need response a json data as below:

{
  "url": "picture url"
}

# Upload to QiNiu Cloud

If you want to upload the picture to QiNiu cloud, you need to configure the attribute as above, and then write you own function to get the token.

funcGetToken (resolve) {
  request.get('http://tools-server.making.link/api/uptoken'). then(res => {
    resolve(res.uptoken)
  })
}

For more information about QiNiu cloud, you can refer to QiNiu official website.