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

Add restrictions on presigned URLs #141

Open
rajat1saxena opened this issue Nov 11, 2024 · 0 comments
Open

Add restrictions on presigned URLs #141

rajat1saxena opened this issue Nov 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rajat1saxena
Copy link
Member

The user should be able to set the following restrictions while creating a presigned link

  • max_file_size
  • mime_type

During upload via the presigned link, these restrictions should be respected.

Tech implemention

The presigned link collection should have the following restrictions property

restrictions: {
 maxFileSize?: string
 mimeType?: string
}

The service should throw 400 Bad request if the restrictions are set but are not followed while the upload.

@rajat1saxena rajat1saxena added the enhancement New feature or request label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant