Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure Content-Type correctness #125

Open
roman-khimov opened this issue Jan 20, 2025 · 0 comments · May be fixed by #126
Open

Ensure Content-Type correctness #125

roman-khimov opened this issue Jan 20, 2025 · 0 comments · May be fixed by #126
Labels
enhancement Improving existing functionality I3 Minimal impact S4 Routine U4 Nothing urgent
Milestone

Comments

@roman-khimov
Copy link
Member

Is your feature request related to a problem? Please describe.

I'm always frustrated when frontend returns obscure errors for simple requests. Uploading a binary file can result in

"writer close: status: code = 2048 message = access to object operation denied"

in cases where we know the request will fail in advance. One of such cases is missing/wrong Content-Type.

Describe the solution you'd like

Check Content-Type prior to upload:

Describe alternatives you've considered

No alternatives.

@roman-khimov roman-khimov added enhancement Improving existing functionality I3 Minimal impact S4 Routine U4 Nothing urgent labels Jan 20, 2025
@roman-khimov roman-khimov added this to the v0.6.3 milestone Jan 20, 2025
mike-petrov added a commit that referenced this issue Jan 21, 2025
forbid executable files and set octet-stream for others

closes #125

Signed-off-by: Mikhail Petrov <[email protected]>
@mike-petrov mike-petrov linked a pull request Jan 21, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improving existing functionality I3 Minimal impact S4 Routine U4 Nothing urgent
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant