Open rolandf opened 9 months ago
Frankly, that's an important bit I have left out so far, because of all its security implications.
I would put it into a contrib/upload
sub app so that users can decide if they want to install it. Its dependencies would be collected there (and be optional for the main package). I'd appreciate it if you wanted to give it a go. Happy to help any time.
I'm not up to speed with javascript so for the frontend I'm not sure what is best. I was thinking to put a file field by default and to use htmx to add an additional file field once the previous one has been filled if the user choose to allow multiple uploads. I think that with the help of a code assistant I should be able to integrate a javascript file upload widget but I'm not sure which one to choose.
It would be nice if it was possible to add a "files" area to the form where you can upload as many files as the site owner allow. Either for administrative tasks for health insurance in Belgium or to join university, you need to upload a lot of files with the form such as pdf and ID card picture. I'm not sure how to structure that so it is left as an option and not polute original form builder with too many dependencies.such as Uppy or Dropzone. With a little help to get the way to implement it right I can work on this feature.