Skip to content

feat: add per-user storage quota validation before file uploadFeature/per user storage quota#65

Merged
DenizAltunkapan merged 5 commits into
Vault-Web:mainfrom
Khanvilkar20:feature/per-user-storage-quota
Apr 15, 2026
Merged

feat: add per-user storage quota validation before file uploadFeature/per user storage quota#65
DenizAltunkapan merged 5 commits into
Vault-Web:mainfrom
Khanvilkar20:feature/per-user-storage-quota

Conversation

@Khanvilkar20

Copy link
Copy Markdown
Contributor

Summary

Adds per-user storage quota validation to prevent uploads exceeding allowed storage.

Linked issue

Closes #54

How to test

  • Run tests using mvnw.cmd test → all tests pass
  • Upload a small file → succeeds
  • Upload a file exceeding quota → upload is rejected with error message
  • If quota is null → upload works normally
Screenshot 2026-04-14 113457

Notes / Risk

  • Storage usage is calculated by scanning files in the user directory
  • May have performance impact for very large directories
  • No breaking changes; existing functionality remains unchanged when quota is not set

@DenizAltunkapan DenizAltunkapan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution @Khanvilkar20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add per-user storage quota to prevent storage abuse and uncontrolled uploads

2 participants