소스 검색

dossier field file iage type

bach 3 일 전
부모
커밋
0ddea87d28
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      config/sync/field.field.paragraph.dossier.field_fichiers.yml
  2. 4 0
      config/sync/field.storage.paragraph.field_fichiers.yml

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

@@ -21,7 +21,7 @@ settings:
   handler: 'default:file'
   handler_settings: {  }
   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
 field_type: file

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

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