DiogenesAnalytics / parley

Browser-based interview/application form.
https://diogenesanalytics.com/parley/
MIT License
0 stars 3 forks source link

Feature: Add Ignore File Uploads Key to JSON Config File #22

Closed DiogenesAnalytics closed 6 months ago

DiogenesAnalytics commented 7 months ago

Problem

Currently, file uploads require a certain enctype be set on the <form> element, but if this encryption type is not set, then when the form is submitted any file uploads will not be sent to the form backend service but rather their "path" (a sanitized string) will be sent instead. This could be useful for situations where you want to require the user to upload files but you don't want to deal with processing the files in the backend (or you actually don't need the files and simply want users to upload them).

DiogenesAnalytics commented 6 months ago

Still need to test the form response correctly has the "safe file path" instead of the "data url":

https://github.com/DiogenesAnalytics/parley/blob/90f984ce3cbdeb515d8cc4447f38376e3ba92271/tests/test_website.py#L786-L818

DiogenesAnalytics commented 6 months ago

Implemented with: 943803ab14dacced24449991235ed2fa38ebec28