ssciwr / mondey

In development
https://mondey.lkeegan.dev
GNU Affero General Public License v3.0
0 stars 1 forks source link

Fileupload improvement #117

Closed lkeegan closed 2 weeks ago

lkeegan commented 1 month 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

lkeegan commented 2 weeks ago

resolved by #172