Sterc / FormIt

A dynamic form processing Snippet for MODX Revolution
https://docs.modx.com/current/en/extras/formit
33 stars 58 forks source link

Saving files in FormItSaveForm #124

Closed gpsietzema closed 7 years ago

gpsietzema commented 7 years ago

I understand not wanting to create copies of files that just take up space on the server, but perhaps storing details of the file would be more useful, name, size, type etc...

joeke commented 7 years ago

I've actually just pushed a commit that stores the filename in FormItSaveForm: https://github.com/Sterc/FormIt/commit/3f52b784c8b6b8250ca7bd81f7cd29478b33d7ce. Perhaps we could add an extra parameter to the FormIt call (ex. 'saveFormFiles') with 0 / 1 value to save the uploaded file to show it the cmp? And also put a size limit on the uploaded file.

joeke commented 7 years ago

Should be fixed with latest release.