Repository navigation
Imports
You can create several items at once in a collection by importing a CSV file. Images can be given as URLs or uploaded in a ZIP archive.
- Open a collection and click on the Import button.
- Upload your CSV file and, optionally, a ZIP archive containing the images.
- Map the CSV columns to the item fields.
- Check the preview, select the lines to import and submit.
- You are redirected to the Imports page, where you can follow the import while the items are created in the background.
The uploaded files are kept for 24 hours. After that, start the import again from the beginning.
The import feature can be disabled in Settings. An administrator can also disable the import for every user of the instance.
- The separator must be a comma
,. - Text containing commas, quotes or line breaks must be wrapped in double quotes
". A double quote inside a value is written"". - The first line must contain the column headers.
- Use UTF-8 encoding to keep accents and special characters. Files saved as "UTF-8 with BOM" (Excel) are supported.
Example:
Name,Image,Quantity,Tags,Visibility,Author,Release date,Price
Dune,https://example.com/dune.jpg,1,"Sci-Fi, Classic",public,Frank Herbert,1965-08-01,12.50 EUR
Foundation,covers/foundation.png,2,Sci-Fi,private,Isaac Asimov,1951-06-01,8.99 USDThe mapping is prefilled from the column headers:
- Columns named
Name,Image,Quantity,TagsandVisibilityare mapped to the matching item field. Headers are not case sensitive. - Every other column is added as an extra field of type Text, with the header as label and a public visibility.
You can change everything before going to the preview. Only the name is required, every other column is optional.
| Field | Expected value |
|---|---|
| Name | Any text, cannot be empty |
| Image | An URL, or the path of an image in the ZIP archive (see Images) |
| Quantity | An integer greater than or equal to 1 |
| Tags | Tag labels separated by commas. Existing tags are reused, missing ones are created |
| Visibility |
public, internal or private. If empty, the visibility of the collection is used |
Click on Add an extra field mapping to import another column as an additional data field. For each extra field, choose the CSV column, the field type, its label and its visibility.
| Type | Expected value | Example |
|---|---|---|
| Text, Textarea, Markdown | Any text | Frank Herbert |
| Link | An URL | https://en.wikipedia.org/wiki/Dune |
| Country | Alpha-2 code from ISO 3166 | FR |
| Date | YYYY-MM-DD |
1965-08-01 |
| Rating | An integer from 1 to 10 | 8 |
| Number | A number, with a dot as decimal separator | 412 |
| Price | An amount with a dot as decimal separator, a space, then a currency code | 12.50 EUR |
| Checkbox |
1 for checked, 0 for unchecked |
1 |
Check Create corresponding tags to also add the value of the field as tags on the item. For example, a Genre column can create a tag for each genre.
Values are not case sensitive for visibility, country and currency codes. Empty cells are allowed.
The Image column accepts 2 kinds of values:
-
An URL (
https://...): the image is downloaded during the import. If the download fails, the item is created without image. -
A path in the ZIP archive: the value must match the path of the file inside the archive, folders included. For example,
covers/foundation.pngfor afoundation.pngfile in acoversfolder.
Rules for the ZIP archive:
- Accepted images: PNG, JPEG, WebP and AVIF.
- Maximum image size: 8000 px per side.
- The maximum upload size depends on your server configuration and is displayed under the upload button.
The same image can be used by several lines.