meteor-cfs-autoform icon indicating copy to clipboard operation
meteor-cfs-autoform copied to clipboard

cfs-files (the multi version) does not work

Open genyded opened this issue 9 years ago • 2 comments

There are 2 issue with cfs-files (the "multi" version)...

  1. When file or files are selected, submit fails with "must be a string" error
  2. When changing files, the previous one or ones are not cleared

genyded avatar Aug 21 '15 02:08 genyded

I have the exactly same Issue

ofqwx avatar Aug 21 '15 23:08 ofqwx

I had the same issue and I've managed to find a workaround. Instead of using afQuickField assign an afFieldInput to the correspoding array in the schema.

The schema part

  fileList: {
    type: [String],
    optional: true,
  }

The template

    {{> afFieldInput name="fileList" type="cfs-files" collection="files"}}

I'm still testing it so please test this before using it! It seems to be working for me but your mileage may vary!

As for the second issue (changing the files not clearing the previous ones) I haven't found any solutions yet.

tothand avatar Aug 30 '15 14:08 tothand