-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Upload file (base 64) not working in wizard #1290
Comments
Hello, Thanks. |
For now, i just use a little workaround but i'm looking forward to fix ;) |
Hi @marcopollacci , we encountered the same issue on our side. Could you please share your workaround? |
Oh..actually it's not really a great workaround...but i was in hurry and it works... :P
and if your upload field is in your last page of wizard form, it works :) But, bad news if you have upload field in a different page than last, 'cause actually seems that only way to make thing work (after added try catch ) its to add an hidden submit button in the same page where upload field is. (really dirty and strange things) |
@marcopollacci I have upload field in different pages than last, so i had to add a null check and bypass the #1096 where button gets disabled. |
I just add this too! Thank you!! |
Hi, i try to upload file by file input.
Everything it's ok in "normal" form, but when i try to wizard this is what appens:
File.js:853 Uncaught TypeError: Cannot read property 'querySelector' of null
at eval (File.js:853)
at Array.forEach ()
at FileComponent.upload (File.js:807)
at HTMLInputElement.onChange (File.js:305)
(anonymous) @ File.js:853
upload @ File.js:807
onChange @ File.js:305
var submitButton = _this14.root.element.querySelector('.formio-component-submit').querySelector('button');
The text was updated successfully, but these errors were encountered: