{"id":21058294,"url":"https://github.com/bluefrog130/file-upload-bug","last_synced_at":"2025-06-17T05:03:03.566Z","repository":{"id":101936562,"uuid":"489055881","full_name":"BlueFrog130/file-upload-bug","owner":"BlueFrog130","description":null,"archived":false,"fork":false,"pushed_at":"2022-05-05T17:07:23.000Z","size":1043,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-14T00:31:59.634Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Svelte","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/BlueFrog130.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-05-05T16:53:05.000Z","updated_at":"2022-05-05T16:53:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"5bd0e1a4-25e7-4423-9423-b4b5c0070625","html_url":"https://github.com/BlueFrog130/file-upload-bug","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BlueFrog130/file-upload-bug","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueFrog130%2Ffile-upload-bug","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueFrog130%2Ffile-upload-bug/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueFrog130%2Ffile-upload-bug/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueFrog130%2Ffile-upload-bug/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BlueFrog130","download_url":"https://codeload.github.com/BlueFrog130/file-upload-bug/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BlueFrog130%2Ffile-upload-bug/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260294451,"owners_count":22987621,"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-19T17:07:25.073Z","updated_at":"2025-06-17T05:03:03.526Z","avatar_url":"https://github.com/BlueFrog130.png","language":"Svelte","funding_links":[],"categories":[],"sub_categories":[],"readme":"# File upload bug\n\nhttps://github.com/sveltejs/kit/issues/4832\n\nThis repo is to demonstrate a bug that occurs when dynamically adding files to the `static` folder when using `@sveltejs/adapter-node`.\n\n## Reproduction\n\nClone this repo and build it.\n\n```bash\nnpm run build\n```\n\nNext, navigate to the `build` directory and run the `index.js`\n\n```bash\ncd build \u0026\u0026 node index.js\n```\n\nNotice how after uploading files and clicking the links, a `404` is received, _even though_ the file is within the `static` folder.\n\n![choose](.github/choose.png)\n![submitted](.github/submitted.png)\n![file](.github/file.png)\n![404](.github/404.png)\n\n## Notes\n\nThis seems to _only_ be an issue when running in production. Running in development works just fine\n\n```bash\nnpm run dev # or preview \u003c-- Works just fine\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluefrog130%2Ffile-upload-bug","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbluefrog130%2Ffile-upload-bug","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbluefrog130%2Ffile-upload-bug/lists"}