Closed lkeegan closed 2 weeks ago
Currently this uses FileReader to upload the file and convert to a data uri.
By using URL.createObjectURL instead it could directly display the image from disk without uploading and converting it first.
see e.g. https://github.com/ssciwr/mondey/blob/5e2c9bc0644799250d2e8d6d1c24521876d0b18d/frontend/src/lib/components/Admin/EditMilestoneGroupModal.svelte#L29-L34
resolved by #172
Currently this uses FileReader to upload the file and convert to a data uri.
By using URL.createObjectURL instead it could directly display the image from disk without uploading and converting it first.
see e.g. https://github.com/ssciwr/mondey/blob/5e2c9bc0644799250d2e8d6d1c24521876d0b18d/frontend/src/lib/components/Admin/EditMilestoneGroupModal.svelte#L29-L34