diff --git a/src/components/FileEditor/FileEditor.react.js b/src/components/FileEditor/FileEditor.react.js index a3c06cafe9..e0be0ca3b9 100644 --- a/src/components/FileEditor/FileEditor.react.js +++ b/src/components/FileEditor/FileEditor.react.js @@ -54,10 +54,12 @@ export default class FileEditor extends React.Component { } async handleChange(e) { - let file = e.target.files[0]; + const file = e.target.files[0]; if (file) { - let base64 = await this.getBase64(file); - this.props.onCommit(new Parse.File(file.name, { base64 })); + const base64 = await this.getBase64(file); + const parseFile = new Parse.File(file.name, { base64 }); + await parseFile.save(); + this.props.onCommit(parseFile); } }