There are 3 levels of configuration. This section describes the import configuration. All import configurations are xml-files located in a subfolder of the Importer installation named ImportConfigs. Every xml-file in this subfolder will be perceived as a configuration file. Only files with xml extension are read. Everything else is ignored. Here is a list of all possible configurations.
...
language | xml |
---|
...
The importer service is configured from the MediaManager UI under General settings/Importer.
It is enabled by creating a configuration and enabling that.
To create a new import configuration navigate to the before mentioned path and hit the Create new button in the top right corner, see screnshot
From here there are the following configuration options.
Info |
---|
The UI will change depending on a few of the selections and the below screenshot highlights as many options as possible. |
Key | Description | Data type / description | Default |
---|
value | |||
---|---|---|---|
Name | A name that must be unique used to identify the import configuration | String | None |
Upload directory | This is the hot folder import path. If this is running on a virtual machine, this must point to an accessible directory on the web server (e.g. C:\Storage\upload\hotfolder). If this is running in kubernetes in must be a relative path on the provided sftp server (e.g. /hotfolder) | String | None |
Active | This enabled/disabled the import configuration | Bit | False |
Zip content directory | If this is specified, then a zip file containing the entire import can be dropped in this directory. The contents is then extracted and put in the specified UploadDirectory | String | None |
Run upload | Specifies if this configuration is used for upload or metadata import. If false, no files are uploaded and the import configuration is assumed to be metadata import | Bit | True |
Computer name | An identification token of the uploading application. This name can be used in automations to identify where the upload is coming from | String | None |
Archive on replace | Specifies if the import should do duplicate detection. If yes, duplicates are replaced. | Bit | True |
Keep metadata | If ArchiveOnReplace is true, this specifies if the metadata should be copied to the new version. If true, the metadata is copied | Bit | True |
File name stamp type | How filename is stamped. Example:
| Enum:
|
Delay in seconds from a file has last been written to the Importer will upload it. The default is zero and this has been the default behavior for the Importer since the beginning.
Leave this at 0 unless using FTP or perhaps a 3rd party file integration that fails even when TreatZeroByteFilesAsFailed is false.
How to handle zero-byte failes. True will handle them as failed files. False will ignore and essentially retry again later. It is important to set this false when input is ftp or similar input that allocates a zero-byte file and writes it later.
The default is false and this alters the behavior which before the introduction of this setting always treated zero-byte files as failed. This setting was introduced in the 5.4.0-139 build.
The type of medata input.
- CSV: when metadata is a CSV sheet.
- Excel: when metadata is an Excel sheet.
- Xml2Metadata: when metadata is an xml file.
Enum:
- CSV
- Excel
- Xml2Metadata
Enum:
- TextValue
- Option
| RelativePath |
Stamp Field | Specifies the metadata string field in which the upload filename is put in. The value is based on FileNameStampType configuration | String | Fullpath UNC metadata field |
Success Action | Specifies what to do with the file on Success. Notice you must specify a destination directory on Move action. | Enum
| Delete |
Failure Action | Specifies what to do with the file on Failure. Notice you must specify a destination directory on Move action. | Enum
| Move |
Delete Empty Directories | If true, any sub directory that is empty once the import has completed will be deleted | Bit | False |
last Write Delay before upload | This specifies for how long the importer should wait before uploading files after the files has been moved to the hot folder. This may need to be increased for sFTP drop folders as that is transported over the internet, rather than an internal file copy on disk. | Int | 0 |
Treat zero byte files (empty files) as failed | This is related to the above setting. If the file is uploaded before the move to the folder has been completed, then specially FTP servers will create a new file which has zero bytes. This generally should be True. | Bit | True |
Culture | This controls how datetime and floats are parsed in metadata import as they may depend on the language. If in doubt use Invariant | List of Langauages | Invariant |
Uploaders user id | This controls which user the import should upload as. | Int | 10000 |
Combo separator | This controls which separator is used to separate multi values like combo values. | String | ; |
Combo match style | Determines if the combo is matched on textual value (which is different between languages) or option value (which is the non-language unique identifier). | Enum
| TextValue |
Match search name | This configures which API endpoint to use for duplicate detection. This is mainly used to switch between filename matching or assetid matching | List of searches | DamImporterMatchSearch |
Match token fallback type | The default match token is what is configured in File name stamp type, however, this can be used as fallback | Enum:
| Relative path |
Metadata import type | This configures what the input for the metadata should be. Do not import implicitly disabled metadata import for the import configuration (i.e. asset upload only). | Enum:
| Import from sheets |
Sheet type | If Import from sheets is configured, then this controls the type of the sheet | Enum
| Excel |
Sheet directory | The directory in which the sheet is uploaded. Similar to Upload directory | String | None |
MetafieldIdRow | Which row in the sheet holds the metadata configuration (metafield IDs). | Integer ( |
0-based index) | None |
DataStartRow | Which row in the sheet does data start. This allows the sheet to contain 1 or more rows in the beginning which are ignored by the Importer. | Integer ( |
When set a search will be executed the purpose of which varies with configuration:
- RunUpload is true: The search result will be used to determine if an asset must be replaced.
- RunMetadata is true and RunUpload is false: The search result is used to determine the asset to be metadata updated.
0-based index) | None |
MatchTokenColumn | Which column in the sheet holds the token to use as input for MatchSearchName | Integer ( |
0-based index) | None |
FileNameColumn | Which |
column in the |
Enum:
- FileNameOnly
- FileNameNoExtension (5.2.1+)
- RelativePath
- AbsolutePath
...
sheet holds the filename of the file to upload. | Integer (0-based index) | None |