directus / v8-archive

Directus Database API — Wraps Custom SQL Databases with a REST/GraphQL API
https://docs.directus.io/api/reference.html
505 stars 204 forks source link

Image upload field cannot load in safari after image added. #2159

Open adamjgrant opened 4 years ago

adamjgrant commented 4 years ago
Screen Shot 2020-06-08 at 3 41 26 PM

On version 8.7.1 docker directus. However, I can also reproduce this issue in the official hosted demo: https://demo.directus.io/admin/#/thumper/collections/about_us/1

Error message: JS: RangeError: date value is not finite in DateTimeFormat format()

Appears to happen with image upload fields only in safari

pzehle commented 4 years ago

Just to confirm, I have the same problem.

Tried emptying cache, deleting the images and re-uploading them.

Also, the same JS error is not letting me re-select a new image in the same field. As I clear the value, reload the page and the image is still there. If I try to select a new image, I get an error.

I am using v8.7.2

adamjgrant commented 4 years ago

@pzehle are you able to get it to work in Chrome or Brave as a temp workaround?

pzehle commented 4 years ago

@adamjgrant yes, working on Chrome without any issue. Can't say about Brave.

jroxendal commented 4 years ago

This is most likely related to this: https://github.com/directus/app/pull/2876

Safari cannot parse the date format sent by the API.