diff --git a/app/Models/LibraryItem.php b/app/Models/LibraryItem.php index 02402f4c..89918dbc 100644 --- a/app/Models/LibraryItem.php +++ b/app/Models/LibraryItem.php @@ -78,7 +78,7 @@ class LibraryItem extends Model implements HasMedia, Sortable ->singleFile() ->useFallbackUrl(asset('img/einundzwanzig.png')); $this->addMediaCollection('single_file') - ->acceptsMimeTypes(['application/pdf']) + ->acceptsMimeTypes(['application/pdf', 'application/zip', 'application/octet-stream', 'application/x-zip-compressed', 'multipart/x-zip']) ->singleFile(); $this->addMediaCollection('images') ->useFallbackUrl(asset('img/einundzwanzig.png')); diff --git a/app/Nova/LibraryItem.php b/app/Nova/LibraryItem.php index 8bee16a3..ae38ec71 100644 --- a/app/Nova/LibraryItem.php +++ b/app/Nova/LibraryItem.php @@ -104,15 +104,17 @@ class LibraryItem extends Resource ->exceptOnForms(), Images::make(__('Main picture'), 'main') - ->conversionOnIndexView('thumb')->showStatistics(), + ->conversionOnIndexView('thumb') + ->showStatistics(), Images::make(__('Images'), 'images') ->conversionOnIndexView('thumb') ->help('Upload images here to insert them later in the Markdown Description. But you have to save before.') - ->hideFromIndex()->showStatistics(), + ->hideFromIndex() + ->showStatistics(), Files::make(__('Downloadable File'), 'single_file') - ->help('Für neue Datei-Typen bitte bei den Admins melden. (Derzeit: PDF)'), + ->help(__('Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)')), Select::make(__('Language Code'), 'language_code') ->options( diff --git a/resources/lang/de.json b/resources/lang/de.json index 5f9250c7..2d09f30a 100644 --- a/resources/lang/de.json +++ b/resources/lang/de.json @@ -696,5 +696,6 @@ "Filter": "", "no location set": "kein Ort gesetzt", "Open on Youtube": "Auf Youtube öffnen", - "You do not have permission to view the page.": "Du hast keine Berechtigung, die Seite anzuzeigen." + "You do not have permission to view the page.": "Du hast keine Berechtigung, die Seite anzuzeigen.", + "Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "Bitte kontaktiere die Administratoren für neue Dateitypen, ansonsten packe die Dateien in ein ZIP! (Derzeit: PDF, ZIP)" } diff --git a/resources/lang/en.json b/resources/lang/en.json index d9b705a6..920dc66b 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -690,5 +690,6 @@ "Filter": "", "no location set": "", "Open on Youtube": "", - "You do not have permission to view the page.": "" -} \ No newline at end of file + "You do not have permission to view the page.": "", + "Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "" +} diff --git a/resources/lang/es.json b/resources/lang/es.json index 958e9d3f..04a78889 100644 --- a/resources/lang/es.json +++ b/resources/lang/es.json @@ -690,5 +690,6 @@ "Filter": "", "no location set": "", "Open on Youtube": "", - "You do not have permission to view the page.": "" + "You do not have permission to view the page.": "", + "Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "" } \ No newline at end of file diff --git a/resources/lang/fr.json b/resources/lang/fr.json index e826352a..13515e55 100644 --- a/resources/lang/fr.json +++ b/resources/lang/fr.json @@ -691,5 +691,6 @@ "Filter": "", "no location set": "", "Open on Youtube": "", - "You do not have permission to view the page.": "" + "You do not have permission to view the page.": "", + "Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "" } \ No newline at end of file diff --git a/resources/lang/hr.json b/resources/lang/hr.json index 24410816..29f16bc8 100644 --- a/resources/lang/hr.json +++ b/resources/lang/hr.json @@ -691,5 +691,6 @@ "Filter": "", "no location set": "", "Open on Youtube": "", - "You do not have permission to view the page.": "" + "You do not have permission to view the page.": "", + "Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "" } \ No newline at end of file diff --git a/resources/lang/it.json b/resources/lang/it.json index 78d9ca03..ca173b56 100644 --- a/resources/lang/it.json +++ b/resources/lang/it.json @@ -691,5 +691,6 @@ "Filter": "", "no location set": "", "Open on Youtube": "", - "You do not have permission to view the page.": "" + "You do not have permission to view the page.": "", + "Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "" } \ No newline at end of file diff --git a/resources/lang/mk.json b/resources/lang/mk.json index 4874eb56..857fb161 100644 --- a/resources/lang/mk.json +++ b/resources/lang/mk.json @@ -691,5 +691,6 @@ "Filter": "", "no location set": "", "Open on Youtube": "", - "You do not have permission to view the page.": "" + "You do not have permission to view the page.": "", + "Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "" } \ No newline at end of file diff --git a/resources/lang/pl.json b/resources/lang/pl.json index 2997c0ab..531e5457 100644 --- a/resources/lang/pl.json +++ b/resources/lang/pl.json @@ -691,5 +691,6 @@ "Filter": "", "no location set": "", "Open on Youtube": "", - "You do not have permission to view the page.": "" + "You do not have permission to view the page.": "", + "Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "" } \ No newline at end of file diff --git a/resources/lang/pt.json b/resources/lang/pt.json index 0af8c7ce..3969ede1 100644 --- a/resources/lang/pt.json +++ b/resources/lang/pt.json @@ -691,5 +691,6 @@ "Filter": "", "no location set": "", "Open on Youtube": "", - "You do not have permission to view the page.": "" + "You do not have permission to view the page.": "", + "Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "" } \ No newline at end of file diff --git a/resources/lang/tr.json b/resources/lang/tr.json index 9f978e57..9a40362d 100644 --- a/resources/lang/tr.json +++ b/resources/lang/tr.json @@ -665,5 +665,6 @@ "Filter": "", "no location set": "", "Open on Youtube": "", - "You do not have permission to view the page.": "" + "You do not have permission to view the page.": "", + "Please contact the admins for new file types, otherwise pack the files in a ZIP! (Currently: PDF, ZIP)": "" } \ No newline at end of file