{"id":21175359,"url":"https://github.com/6thsolution/large_file_uploader","last_synced_at":"2025-07-09T21:31:53.314Z","repository":{"id":45576120,"uuid":"428405861","full_name":"6thsolution/large_file_uploader","owner":"6thsolution","description":"A plugin for uploading large file in flutter web.","archived":false,"fork":false,"pushed_at":"2022-07-19T13:45:37.000Z","size":182,"stargazers_count":6,"open_issues_count":2,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-01T05:09:43.742Z","etag":null,"topics":["flutter","flutter-web","js","upload","uploader"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/large_file_uploader","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/6thsolution.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-15T20:05:33.000Z","updated_at":"2023-03-22T09:48:38.000Z","dependencies_parsed_at":"2022-09-10T04:15:52.765Z","dependency_job_id":null,"html_url":"https://github.com/6thsolution/large_file_uploader","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/6thsolution/large_file_uploader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6thsolution%2Flarge_file_uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6thsolution%2Flarge_file_uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6thsolution%2Flarge_file_uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6thsolution%2Flarge_file_uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/6thsolution","download_url":"https://codeload.github.com/6thsolution/large_file_uploader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/6thsolution%2Flarge_file_uploader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264503949,"owners_count":23618762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flutter","flutter-web","js","upload","uploader"],"created_at":"2024-11-20T16:59:09.862Z","updated_at":"2025-07-09T21:31:53.008Z","avatar_url":"https://github.com/6thsolution.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Large File Uploader (Only Web)\n\nA plugin for uploading large file in flutter web.\n\n# Let's get started\n\n### 1 - Depend on it\n\n##### Add it to your package's pubspec.yaml file\n\n```yml\ndependencies:\n  large_file_uploader: ^0.0.7\n```\n\n\n### 2 - Install it\n\n##### Install packages from the command line\n```sh\nflutter pub get\n```\n\n\n### 3 - Import it\n\n##### Import it to your project\n```dart\nimport 'package:large_file_uploader/large_file_uploader.dart';\n```\n\n### 4 - Copy It\n\n##### Copy upload_worker.js to project public folder\n\n## How to use?\n##### Simple usage\n\n```dart\nLargeFileUploader().selectFileAndUpload(\n    uploadUrl:\n      'https://baseurl.com/upload-path',\n    data: {\n      'title': 'My image', //Additional fields to send with file\n    },\n    headers: {\n      'Authorization':\n          'Bearer \u003caccessToken\u003e' \n    },\n    onSendProgress: (progress) =\u003e\n        debugPrint('onSendProgress:$progress'),\n    onComplete: () =\u003e debugPrint('onComplete'),\n    onFailure: () =\u003e debugPrint('onFailure'),\n  );\n```\n\n##### Advanced usage\n\n```dart\n  import 'dart:html' as html;\n  import 'package:large_file_uploader/large_file_uploader.dart';\n\n  ...\n\n  final _largeFileUploader = LargeFileUploader();\n  html.File? file; \n  html.File? thumbnail;\n\n  _largeFileUploader._largeFileUploader.pick(\n        type: FileTypes.video, \n        callback: (file) {\n        pickedThumbnail = file;\n    });\n  );\n\n  _largeFileUploader._largeFileUploader.pick(\n        customType: 'image/jpeg', \n        callback: (file) {\n        thumbnail = file;\n    });\n  );\n  \n  if(file != null){\n    _largeFileUploader.upload(\n        uploadUrl: url,\n        headers: {\"Authorization\": \"Bearer \u003caccessToken\u003e\"},\n        data: {\"title\": \"My Image\", \"thumbnail\": thumbnail, \"file\": file},\n        onSendProgress: (progress) =\u003e debugPrint(progress.toString()),\n        onComplete: (response) =\u003e debugPrint(response.toString()),\n    );\n  }\n  \n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6thsolution%2Flarge_file_uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F6thsolution%2Flarge_file_uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F6thsolution%2Flarge_file_uploader/lists"}