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

File upload / download enhancements #3121

Open
platosha opened this issue Jan 7, 2025 · 0 comments
Open

File upload / download enhancements #3121

platosha opened this issue Jan 7, 2025 · 0 comments
Labels
Epic hilla Issues related to Hilla

Comments

@platosha
Copy link
Contributor

platosha commented Jan 7, 2025

Easy file uploading is only supported at the moment with using custom Spring MVC multipart request handler.

A better support should include:

  • Support for parameters of MultipartFile type in endpoints using multipart requests
  • Endpoint security applies
  • Validation for file name, type, and size constraints, plus regular Jakarta constraints
    • Programmatic server-side validation is a good start
  • Form binding support using File/Blob type in TypeScript:
    • Support for immediate or late (on form submit) uploading
    • Both <Upload> and <input type="file"> using MultipartFile in the endpoint
  • File download support with binary response
  • Documentation
@platosha platosha added hilla Issues related to Hilla Epic labels Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Epic hilla Issues related to Hilla
Projects
None yet
Development

No branches or pull requests

1 participant