simplajs / simpla-img

An editable image you can update inline, built on Simpla
https://www.simplajs.org
MIT License
6 stars 3 forks source link

Uploaded images are missing file extension #66

Closed madeleineostoja closed 7 years ago

madeleineostoja commented 7 years ago

Images uploaded by simpla-img (converted from base64) are missing a file extension when they're pulled back in as the img src. This breaks a lot of common browser behavior, eg:

I imagine this should be a quick API patch? Just read the base64 type when we convert it to a blob and add the appropriate file extension to the filename.

bedeoverend commented 7 years ago

Yup should be a relatively small fix. I think also mimetype might be missing? Anyway, I'll flag it on the API and close this once fixed upstream.

bedeoverend commented 7 years ago

Closed upstream in the API