upload_largest_files 0.0.3 copy "upload_largest_files: ^0.0.3" to clipboard
upload_largest_files: ^0.0.3 copied to clipboard

Platformweb

A flutter web plugin to upload largest files in web.

upload_largest_files #

This plugin is a wrapper for the project Upload largest Files to make uploads on the web. See the example for more details. See the example for more details. Before running the example you should start the upload server on the folder: example/lib/server.

Upload largest files - example

Getting Started #

The use is very simple. The upload largest files receive an object to make an upload and then process in a native js.

Future<void> _uploadFile(File file) async {
  final props = UploadLargestFilesProps();
  props.file = file;
  props.url = '$serverHost/$uploadPath';
  props.onProgress = (ProgressEvent p) async {
    print('loaded: ' + p.loaded.toString());
    print('total: ' + p.total.toString());
  };
  await uploadLargestFiles.uploadFile(props);
}

About UploadLargestFilesProps:

Prop Type Description
file (required) File The upload file.
url (required) String The server URL to make an upload.
headers (optional) Object The request headers to make an upload.
httpMethod (optional) POST,GET,PUT,PATCH The method to make upload (POST is default).
onProgress (optional) Function(ProgressEvent progress) The callback function to make follow the upload progress..
2
likes
110
pub points
73%
popularity

Publisher

unverified uploader

A flutter web plugin to upload largest files in web.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, flutter_web_plugins, js

More

Packages that depend on upload_largest_files