Property FileIdMode
FileIdMode
Gets or sets the mode used to generate file IDs in the repository. Default is Secure.
Declaration
public FileIdMode FileIdMode { get; set; }
Property Value
| Type | Description |
|---|---|
| FileIdMode |
Remarks
Use Sequential for improved locality and indexing performance when file IDs are not exposed to untrusted parties or are only used for publicly accessible resources. Use Secure when file IDs are used for private resources or otherwise exposed to untrusted parties and must be unpredictable.
If this setting is changed, existing file IDs are not affected and the repository continues to function as expected, but new file IDs are generated according to the new mode.
If you have a mix of public and private resources, it is good practice to use separate repositories with different FileIdMode settings to avoid the security risks of using sequential IDs for private resources or the performance costs of using secure IDs for public resources.