Skip to main content

Function: normalizeProviderObjectKey()

normalizeProviderObjectKey(rawKey: string): string

Defined in: shared/utils/cloudKeyNormalization.ts:218

Normalizes a provider object key with the default sandbox rules used across built-in providers.

Parametersโ€‹

rawKeyโ€‹

string

Returnsโ€‹

string

Remarksโ€‹

This is the common configuration used by Dropbox + Google Drive providers:

  • Trim
  • Normalize Windows separators
  • Strip leading slashes
  • Reject ASCII control characters
  • Reject traversal segments

Providers may still apply additional constraints (prefixing, max sizes, etc).