Vue-form-generator: Getting warning: The 'file' type in input field is deprecated

Created on 1 Mar 2018  路  3Comments  路  Source: vue-generators/vue-form-generator

Thanks a bunch for this package :)

I'm getting this warning:

The 'file' type in input field is deprecated. Use 'file' field instead.

when using this kind of field:

{
    type: "input",
    inputType: "file"
}

I can't find anything in the documentation about what to do instead of this, even though it says I shouldn't use type: "input" for type file. I've tried just type: "file" but then I get an error about an unregistered custom file type.

What is the recommended alternative?

documentation

Most helpful comment

You need to use the 'upload' field,

{
  type: 'upload',
  onChange: (model, schema, event, instance) { }
  ...
}

The upload field doesn't appear to be documented...

All 3 comments

You need to use the 'upload' field,

{
  type: 'upload',
  onChange: (model, schema, event, instance) { }
  ...
}

The upload field doesn't appear to be documented...

Thank you! Correct, this field is not documented.

Related to #400 - additional usage and sample code can be found here.

https://github.com/vue-generators/vue-form-generator/issues/400

Was this page helpful?
0 / 5 - 0 ratings

Related issues

afourmeaux picture afourmeaux  路  4Comments

sjordan1975 picture sjordan1975  路  5Comments

dflock picture dflock  路  5Comments

Atiladanvi picture Atiladanvi  路  4Comments

icetee picture icetee  路  4Comments