📤 Upload Media by Url
Upload a Media File to Business Account by Url
var upload = await whatsapp.uploadMediaFileByUrl(
fileUrl: 'https://whatsapp-flutter.github.io/samples/whatsapp-flutter.jpg',
fileType: 'image/jpeg',
);
upload.getMediaId(); //10023589340434
param | type | required | description |
---|---|---|---|
fileUrl | String | yes | File Url. |
fileType | String | yes | File Type (ex. image/png) |
Supported Media Type
Please make sure you are using correct media types, Please find out supported media type here.