markboard-io / markboard

Wysiwyg markdown whiteboard for note-taking and building team knowledge base.
https://markboard.io
MIT License
190 stars 23 forks source link

We can't upload `svg` files now #29

Open shiqimei opened 1 year ago

shiqimei commented 1 year ago
react_devtools_backend.js:2655 
r {isClientSafe: true, error: 500, reason: '[FilesCollection] [insert] Insert method accepts F… property, and its size must be larger than zero.', details: undefined, message: '[FilesCollection] [insert] Insert method accepts F…rty, and its size must be larger than zero. [500]', …}
details
: 
undefined
error
: 
500
errorType
: 
"Meteor.Error"
isClientSafe
: 
true
message
: 
"[FilesCollection] [insert] Insert method accepts File, not a FileList. You need to provide a real File. File must have `.name` property, and its size must be larger than zero. [500]"
reason
: 
"[FilesCollection] [insert] Insert method accepts File, not a FileList. You need to provide a real File. File must have `.name` property, and its size must be larger than zero."
stack
: 
"Error: [FilesCollection] [insert] Insert method accepts File, not a FileList. You need to provide a real File. File must have `.name` property, and its size must be larger than zero. [500]\n    at new b (https://markboard.io/2197b2c2f8831006548925bc97adc62ba43cc103.js?meteor_js_resource=true:307:20409)\n    at p.insert (https://markboard.io/2197b2c2f8831006548925bc97adc62ba43cc103.js?meteor_js_resource=true:307:5278)\n    at eval (/imports/services/client/files.ts:1:122)\n    at new Promise (<anonymous>)\n    at l (/imports/services/client/files.ts:1:91)\n    at eval (/imports/excalidraw/components/ExcalidrawCore.tsx:1:47231)\n    at new Promise (<anonymous>)\n    at Vs.initializeImage (/imports/excalidraw/components/ExcalidrawCore.tsx:1:47126)\n    at async Vs.insertImageElement (/imports/excalidraw/components/ExcalidrawCore.tsx:1:47822)"
[[Prototype]]
: 
Error