@programisto/edrm-storage 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,18 +9,26 @@ export const defaultConfig = {
9
9
  defaultProvider: 'S3',
10
10
  maxFileSize: 100 * 1024 * 1024, // 100MB
11
11
  allowedMimeTypes: [
12
- 'application/pdf',
13
- 'application/msword',
14
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
12
+ // Images (priorité pour les événements)
15
13
  'image/jpeg',
14
+ 'image/jpg',
16
15
  'image/png',
17
16
  'image/gif',
17
+ 'image/webp',
18
+ 'image/svg+xml',
19
+ // Documents
20
+ 'application/pdf',
21
+ 'application/msword',
22
+ 'application/vnd.ms-excel',
23
+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
24
+ 'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
18
25
  'text/plain',
26
+ // Archives
19
27
  'application/zip',
20
28
  'application/x-zip-compressed'
21
29
  ],
22
- uploadExpiresIn: 3600, // 1 heure
23
- downloadExpiresIn: 3600 // 1 heure
30
+ uploadExpiresIn: 7200, // 2 heures (plus de temps pour l'upload)
31
+ downloadExpiresIn: 86400 // 24 heures (URLs plus longues pour l'affichage)
24
32
  },
25
33
  events: {
26
34
  enabled: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@programisto/edrm-storage",
4
- "version": "1.0.0",
4
+ "version": "1.0.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },