You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(graasp-import): export and import the item thumbnails (#1868)
* feat(graasp-import): export and import the item thumbnails
* fix(graasp-import): pull request review fixes
* fix(graasp-import): correct the test fixture
* fix(graasp-import): correct test
* refactor(graasp-import): refactor the thumbnail function
* fix(graasp-import): correct the graasp import test
* fix(s3-file): check the fetch response before starting the file stream
Copy file name to clipboardExpand all lines: src/services/item/plugins/importExport/specifications.md
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,11 +13,15 @@ The export operation produces a single zip file. This file is a simple zip file
13
13
- description (item description in HTML)
14
14
- settings (item settings)
15
15
- extra (item extras)
16
-
- thumbnailFilename (item thumbnail in the original size, if present) - COMING SOON
16
+
- thumbnailFilename (item thumbnail in the original size, if present)
17
17
- children (item children, in case of a folder item)
18
18
- mimetype (item file mimetype, in case there's a file attached to the item)
19
19
```
20
20
21
+
### Files and thumbnails
22
+
23
+
Files are stored in the top level of the zip. The filename is the same as the item ID in the manifest file. The thumbnails are also stored on the top-level and are named using the `{ID}-thumbnail` convention.
24
+
21
25
## Import
22
26
23
27
Upon the import, the uploaded ZIP file is scanned for the presence of a `graasp-manifest.json` file. If the file is present, it is scanned and then the items and their children are recursively imported, respecting the item order in the manifest file.
0 commit comments