Skip to main content
Version: 3.0.0

📤 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
paramtyperequireddescription
fileUrlStringyesFile Url.
fileTypeStringyesFile Type (ex. image/png)
Supported Media Type

Please make sure you are using correct media types, Please find out supported media type here.

Media Return Methods