Skip to content

file upload field: schema.type=Text, schema.dataType=file isn't handled well #466

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

Open
az143 opened this issue Jun 1, 2015 · 0 comments

Comments

@az143
Copy link

az143 commented Jun 1, 2015

as per issue #437 backbone forms does not (yet) have a dedicated editor for file upload fields.
using dataType=file is a workaround that works /mostly/ but not completely:

  1. on initial render with a blank model everything is fine.
  2. no "change" backbone events are triggered when the user browses and selects a file.
  3. if the model happens to have a value already, then the current Text editor tries to set that as the value for the file input field, which fails: just about all modern browsers refuse this and flag it as an insecure operation.
glenpike pushed a commit to glenpike/backbone-forms that referenced this issue Jan 26, 2016
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