api icon indicating copy to clipboard operation
api copied to clipboard

File uploads are lost after failing server-side validation

Open benkeen opened this issue 11 years ago • 1 comments

This is real nuisance, as noted by Jaace here: http://forums.formtools.org/showthread.php?tid=608

Hmm... will need to rewire the code to actually upload and log the file reference despite failing validation. This will probably require a custom function in order to make it compatible with all existing validation code. Damn... Or could the ft_api_process_form function handle it somehow...? Probably not...

benkeen avatar Jun 04 '14 05:06 benkeen

I know it won't be reliable for a while, but on newer browsers, the new javascript window.FileReader object can now check file size and type for cliient side validation. I thought I would just post this and put a "bug" in your ear in case you were interested. :-)

johnbleck3 avatar Jan 26 '18 02:01 johnbleck3