{"id":19692969,"url":"https://github.com/devbridge/html5-file-uploader","last_synced_at":"2025-04-07T17:08:44.031Z","repository":{"id":5380877,"uuid":"6568483","full_name":"devbridge/html5-file-uploader","owner":"devbridge","description":"JavaScript library that manages file uploads using html5 drag and drop and file API's.","archived":false,"fork":false,"pushed_at":"2023-05-31T18:07:43.000Z","size":172,"stargazers_count":206,"open_issues_count":4,"forks_count":90,"subscribers_count":26,"default_branch":"master","last_synced_at":"2024-04-25T22:02:01.241Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"rarescarab/localhost","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devbridge.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-11-06T20:02:21.000Z","updated_at":"2024-03-12T12:37:19.000Z","dependencies_parsed_at":"2024-11-11T19:14:55.921Z","dependency_job_id":"258a090d-675b-4790-abec-7b5ae9b839de","html_url":"https://github.com/devbridge/html5-file-uploader","commit_stats":{"total_commits":19,"total_committers":6,"mean_commits":"3.1666666666666665","dds":"0.26315789473684215","last_synced_commit":"04d4e7d1884dbba899ff1174f32a58e15c3ffdeb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbridge%2Fhtml5-file-uploader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbridge%2Fhtml5-file-uploader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbridge%2Fhtml5-file-uploader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbridge%2Fhtml5-file-uploader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devbridge","download_url":"https://codeload.github.com/devbridge/html5-file-uploader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247694876,"owners_count":20980733,"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":[],"created_at":"2024-11-11T19:14:53.615Z","updated_at":"2025-04-07T17:08:44.010Z","avatar_url":"https://github.com/devbridge.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HTML5 AJAX File Uploader Module\n================================\n\n**This module abstracts HTML5 file and drag and drop API and manages file upload process**\n\n* Free, open source (MIT license)\n* Pure JavaScript - works with any web framework\n* Small \u0026 lightweight\n* No dependencies\n\nSamples on how to use module and create custom user interface for file uploads are available.\n\n## Demos\n\n* [HTML5 Drag \u0026 Drop Ajax File Uploader](https://www.devbridge.com/sourcery/components/drag-and-drop-uploader/)\n\n## Usage\n\n    html5Upload.initialize({\n        // URL that handles uploaded files\n        uploadUrl: '/file/upload',\n        \n        // HTML element on which files should be dropped (optional)\n        dropContainer: document.getElementById('dragndropimage'),\n\n        // HTML file input element that allows to select files (optional)\n        inputField: document.getElementById('upload-input'),\n\n        // Key for the file data (optional, default: 'file')\n        key: 'File',\n\n        // Additional data submitted with file (optional)\n        data: { ProjectId: 1, ProjectName: 'Demo' },\n\n        // Maximum number of simultaneous uploads\n        // Other uploads will be added to uploads queue (optional)\n        maxSimultaneousUploads: 2,\n\n        // Callback for each dropped or selected file\n        // It receives one argument, add callbacks \n        // by passing events map object: file.on({ ... })\n        onFileAdded: function (file) {\n\n            var fileModel = new models.FileViewModel(file);\n            uploadsModel.uploads.push(fileModel);\n\n            file.on({\n                // Called after received response from the server\n                onCompleted: function (response) {\n                    fileModel.uploadCompleted(true);\n                },\n                // Called during upload progress, first parameter\n                // is decimal value from 0 to 100.\n                onProgress: function (progress, fileSize, uploadedBytes) {\n                    fileModel.uploadProgress(parseInt(progress, 10));\n                }\n            });\n        }\n    });\n\n\n## Support\n\nIE10+, Firefox 15+, Chrome 22+, Safari 6+, Opera 12+\n\n## Authors\n\nTomas Kirda / [@tkirda](https://twitter.com/tkirda)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbridge%2Fhtml5-file-uploader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevbridge%2Fhtml5-file-uploader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbridge%2Fhtml5-file-uploader/lists"}