{"id":16529266,"url":"https://github.com/cometkim/react-directory-input","last_synced_at":"2025-10-28T10:32:19.858Z","repository":{"id":98896317,"uuid":"503469497","full_name":"cometkim/react-directory-input","owner":"cometkim","description":"A simple component to handle a directory as a single file","archived":false,"fork":false,"pushed_at":"2023-12-15T17:43:03.000Z","size":839,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-29T14:44:24.694Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/cometkim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-06-14T18:06:30.000Z","updated_at":"2022-06-28T08:11:10.000Z","dependencies_parsed_at":"2023-12-15T18:51:31.375Z","dependency_job_id":null,"html_url":"https://github.com/cometkim/react-directory-input","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Freact-directory-input","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Freact-directory-input/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Freact-directory-input/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cometkim%2Freact-directory-input/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cometkim","download_url":"https://codeload.github.com/cometkim/react-directory-input/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238230915,"owners_count":19437937,"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-10-11T17:44:16.847Z","updated_at":"2025-10-28T10:32:14.475Z","avatar_url":"https://github.com/cometkim.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-directory-input\n\nA simple component to handle a directory as a single file\n\n## Example\n\n```tsx\nimport * as React from 'react';\nimport { ReactDirectoryZipInput } from 'react-directory-input';\n\nfunction DirectoryUpload() {\n  const [isProcessing, setIsProcessing] = React.useState(false);\n  const [upload, setUpload] = React.useState\u003cFile | null\u003e(null);\n  return (\n    \u003cReactDirectoryZipInput\n      onArchivingStart={() =\u003e {\n        setIsProcessing(true);\n      }}\n      onArchivingResult={({ result }) =\u003e {\n        setUpload(result);\n        setIsProcessing(false);\n      }}\n    /\u003e\n  );\n}\n```\n\n## Note about using form\n\nThere is no way to manipulate state of file input from JavaScript for security reason, which is I didn't noticed when implementing it.\n\nWhen to try using form, **you should override default form submit handler** to build your own FormData, or it is always empty file value.\n\n## LICENSE\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcometkim%2Freact-directory-input","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcometkim%2Freact-directory-input","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcometkim%2Freact-directory-input/lists"}