mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 07:13:12 +00:00
New React Backend Repository
Mobile browsers attach an unreliable Content-Type to a picked file: empty or application/octet-stream when the OS cannot classify it, and sometimes a foreign-but-plausible type for a supported container (video/3gpp for an .mp4, video/x-quicktime for a .mov). The media allowlist already resolved empty and octet-stream types from the extension, but a concrete foreign type was rejected outright, so a real .MP4/.MOV picked on a phone passed the client dialog and was refused by the API. Any declared type that is not itself on the allowlist now falls back to the extension. The extension pairing and magic-byte signature still decide, so the accepted set of files is unchanged; an allowlisted declared type stays authoritative and must still match its own extension. |
||
|---|---|---|
| .ebextensions | ||
| .github | ||
| Api.SeaHavenIndustries | ||
| Api.SeaHavenIndustries.Tests | ||
| Data.SeaHavenIndustries | ||
| docs | ||
| postman | ||
| scripts | ||
| SeaHaven.DataServices | ||
| SeaHaven.Services | ||
| SeaHaven.Services.Tests | ||
| SeaHavenIndustries | ||
| SeaHavenIndustries.Tests | ||
| terraform | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| AGENTS.md | ||
| ARCHITECTURE_AND_CODE_QUALITY.md | ||
| BACKEND_ARCHITECTURE.md | ||
| QUALITY_GATES.md | ||
| REVIEW_AND_PR_FRAMEWORK.md | ||
| SeaHavenIndustries.sln | ||
| TODO.md | ||