dmitrybubyakin / nova-medialibrary-field

Laravel Nova field for managing the Spatie media library
MIT License
262 stars 62 forks source link

->accept('image/jpg') causes attachExisting() from working correctly #102

Closed JonathanDoelan closed 3 years ago

JonathanDoelan commented 3 years ago

I can’t select files from the overlaying modal if ->accept() has one of the following values:

Medialibrary::make(…)
    ->attachExisting()
    ->accept('image/jpg,image/jpeg,image/png,image/gif')
Medialibrary::make(…)
    ->attachExisting()
    ->accept('image/jpg')

It only works this way:

Medialibrary::make(…)
    ->attachExisting()
    ->accept('image/*')
JonathanDoelan commented 3 years ago

Thx!