Commit 24e0bf6f authored by Sonja Happ's avatar Sonja Happ

Use Blob instead of File data type to store file in file store #147

parent e4e9fce2
...@@ -28,8 +28,8 @@ class FileStore extends ArrayStore { ...@@ -28,8 +28,8 @@ class FileStore extends ArrayStore {
let fileID = parseInt(action.id) let fileID = parseInt(action.id)
state.forEach((element, index, array) => { state.forEach((element, index, array) => {
if (element.id === fileID) { if (element.id === fileID) {
// save file object // save blob object
array[index]["data"] = new File([action.data.data], element.name, {type: action.data.type}); array[index]["data"] = new Blob([action.data.data], {type: action.data.type});
// update file type // update file type
array[index]["type"] = action.data.type; array[index]["type"] = action.data.type;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment