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

Ability to upload file at form submission and not on input change event #139

Open
Choko256 opened this issue Jul 20, 2020 · 1 comment
Open

Comments

@Choko256
Copy link

The problem to solve

For now, an upload field selected file is sent to the server at the change event of the file input. I have been informed that it's not GDPR-compliant, as the user is not well-informed its file has been uploaded.
The final goal is to customize the uploaded file destination and ensure the file is uploaded when the user submits the form and not on input change.

Proposed solution

I think the file should be uploaded at form submission, and not at change event. At least, the apostrophe file field widget should give the ability to customize the file submission to allow custom file handling and validating on server-side.

Alternatives

I already have considered creating a new widget extending the apostrophe-base-field-widgets with a custom file handling system but I cannot make it work properly as it's not possible to set enctype as multipart/form-data on an apostrophe form.

Additional context

Apostrophe version : 2.103.1
Apostrophe Forms version : 1.7.0

@boutell
Copy link
Member

boutell commented Jul 21, 2020 via email

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

No branches or pull requests

2 participants