Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.

cfs-files (the multi version) does not work #43

Open
genyded opened this issue Aug 21, 2015 · 2 comments
Open

cfs-files (the multi version) does not work #43

genyded opened this issue Aug 21, 2015 · 2 comments

Comments

@genyded
Copy link

genyded commented Aug 21, 2015

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 genyded changed the title cfs-fles does not work cfs-files (the multi version) does not work Aug 21, 2015
@ofqwx
Copy link

ofqwx commented Aug 21, 2015

�I have the exactly same Issue

@tothand
Copy link

tothand commented Aug 30, 2015

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants