Ember.js: Upload file component

后端 未结 4 1319
梦如初夏
梦如初夏 2021-02-05 23:40

I need to create an Ember component to select a file. My page will include multiple \"upload component\"

I have read a post trying to implement that: (https://stackoverf

4条回答
  •  不思量自难忘°
    2021-02-06 00:13

    In case of uploading multiple files, you may want to use

    {{input type='file' multiple='true' valueBinding='file'}}
                              ^^^^
    

    This is a solution that you would use in normal HTML upload.

    Additionally, you can use 'valueBinding' which will allow you to set up an observer against that value in your component.

提交回复
热议问题