Browse Source

dossier field file iage type

bach 3 days ago
parent
commit
0ddea87d28

+ 2 - 2
config/sync/field.field.paragraph.dossier.field_fichiers.yml

@@ -21,7 +21,7 @@ settings:
   handler: 'default:file'
   handler: 'default:file'
   handler_settings: {  }
   handler_settings: {  }
   file_directory: '[current-user:uid]'
   file_directory: '[current-user:uid]'
-  file_extensions: 'pdf doc docx odt zip'
-  max_filesize: ''
+  file_extensions: 'pdf doc docx odt zip jpeg jpg png'
+  max_filesize: 50MB
   description_field: true
   description_field: true
 field_type: file
 field_type: file

+ 4 - 0
config/sync/field.storage.paragraph.field_fichiers.yml

@@ -3,8 +3,12 @@ langcode: fr
 status: true
 status: true
 dependencies:
 dependencies:
   module:
   module:
+    - field_permissions
     - file
     - file
     - paragraphs
     - paragraphs
+third_party_settings:
+  field_permissions:
+    permission_type: public
 id: paragraph.field_fichiers
 id: paragraph.field_fichiers
 field_name: field_fichiers
 field_name: field_fichiers
 entity_type: paragraph
 entity_type: paragraph