0
ember-paper를 사용하여 파일 (이미지)을 서버 (expressJS)에 업로드하려고 시도했지만 파일을 가져올 수 없습니다.서버에 업로드하기 위해 파일을 가져 오는 방법
#template.hbs
{{paper-input
type="file"
file=file
onChange=(action (mut file))
}}
{{#paper-button onClick=(action 'submit')}}submit{{/paper-button}}
#controller.js
actions: {
submit() {
console.log(this.get('file'));
}
}
여러 조합을 시도했지만 항상 '정의되지 않음'이 있습니다.