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

File interface is broken #2171

Open Rawlings opened 4 years ago

Rawlings commented 4 years ago

Directus Cloud 8.8.0

Adding a new file with the file interface does not work anymore.

Reproduce steps Click on button Add new, then Select from device and pick a file.

Expected behavior The uploaded file should get selected

Actual result An exception occurs and the uploaded file is not selected, see the blank row behind the modal mask. When pressing save, no files will be selected on the collection item.

vue.runtime.esm.js:1888 TypeError: Cannot read property 'startsWith' of undefined
    at a (get-icon.js:6)
    at a.icon (display.vue:30)
    at nr.get (vue.runtime.esm.js:4479)
    at nr.evaluate (vue.runtime.esm.js:4584)
    at a.icon (vue.runtime.esm.js:4836)
    at a (display.vue?20d2:1)
    at vue-composition-api.module.js:604
    at te (vue-composition-api.module.js:565)
    at a.t.render (vue-composition-api.module.js:604)
    at a.e._render (vue.runtime.esm.js:3548)

file-upload

rijkvanzanten commented 4 years ago

@Rawlings What browser does this occur on?

paulagnivo commented 4 years ago

@Rawlings What browser does this occur on?

I am facing this issue on both Safari & Chrome.

Pelletan commented 4 years ago

Got the same bug since update on v8.8. The upload on background works fine: I can find the file in File Library but its not linked to the item in collection

everyx commented 4 years ago

Same problem here :(

Bodom78 commented 4 years ago

Same problem here on latest FireFox 78.0.2.

Error also happens with the multiple file interface.