{"id":20461051,"url":"https://github.com/ericgj/d3-upload","last_synced_at":"2025-08-23T17:39:32.644Z","repository":{"id":22633640,"uuid":"25976360","full_name":"ericgj/d3-upload","owner":"ericgj","description":"Async file upload UI","archived":false,"fork":false,"pushed_at":"2014-11-05T17:38:14.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-16T00:35:56.274Z","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":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericgj.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-10-30T15:11:27.000Z","updated_at":"2014-10-30T15:11:50.000Z","dependencies_parsed_at":"2022-08-21T09:00:40.079Z","dependency_job_id":null,"html_url":"https://github.com/ericgj/d3-upload","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fd3-upload","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fd3-upload/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fd3-upload/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fd3-upload/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericgj","download_url":"https://codeload.github.com/ericgj/d3-upload/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242017459,"owners_count":20058434,"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-15T12:23:01.588Z","updated_at":"2025-03-05T11:27:38.952Z","avatar_url":"https://github.com/ericgj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# d3-upload\n\n  Async file upload UI\n\n  ![screenshot](http://i.imgur.com/BkD9QtN.jpg)\n\n## Features\n\n  - Immediate (not queued) XHR uploads, by default\n  - Optional queued XHR uploads, with customizable display of queued files\n  - Multiple simultaneous uploads \n  - Per-upload 'abort' link\n  - Delete link\n  - Integrated UI for listing uploaded/uploading files\n  - You provide (stateful) POST and (stateless) GET XHR; backend-agnostic\n  - Detailed event-state model\n  - Server 'processing' state (after upload finished but before server response)\n  - Structural styling only\n  - SVG progress bars\n\n## Installation\n\n  Install with [component(1)](http://component.io):\n\n    $ component install ericgj/d3-upload\n\n  Note this libary has an implicit dependency on d3.js. `d3` is assumed to be\n  available as a global.\n\n## Example\n\n  ```js\n  var Upload = require('d3-upload')\n    , uploadingContainer = d3.select('.uploading')\n    , uploadedContainer = d3.select('.uploaded')\n\n  // configure upload-ing panel\n  var uploadingPanel = Upload.create().using( postFactory );\n\n  // add label to upload button (optional; you could also use CSS)\n  uploadingPanel.form.labelButton('Attach');\n\n  // configure upload-ed panel\n  var uploadedPanel = Upload.list().using( fetch );\n  \n  // rerender uploaded panel on newly uploaded file\n  uploadingPanel.on('uploaded', renderUploadedPanel); \n  \n  // delete on user clicked delete box\n  uploadedPanel.view.on('del', delUpload);  \n\n  // initial render\n  renderUploadingPanel();\n  renderUploadedPanel();\n\n  function renderUploadingPanel(){\n    uploadingContainer.call( uploadingPanel );\n  }\n\n  function renderUploadedPanel(){\n    uploadedContainer.call( uploadedPanel );\n  }\n\n  function delUpload(filedata,i){\n    // file data includes file name and url (set by server)\n    // typically you would use this to build a DELETE request\n  }\n\n  ```\n\n\n## API\n\nTODO\n\n\n## Backend considerations\n\nTODO\n\n\n## License\n\n  The MIT License (MIT)\n\n  Copyright (c) 2014 Eric Gjertsen \u003cericgj72@gmail.com\u003e\n\n  Permission is hereby granted, free of charge, to any person obtaining a copy\n  of this software and associated documentation files (the \"Software\"), to deal\n  in the Software without restriction, including without limitation the rights\n  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n  copies of the Software, and to permit persons to whom the Software is\n  furnished to do so, subject to the following conditions:\n\n  The above copyright notice and this permission notice shall be included in\n  all copies or substantial portions of the Software.\n\n  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\n  THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fd3-upload","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericgj%2Fd3-upload","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fd3-upload/lists"}