• Create initial File model revisions for each uploaded file and populate core metadata (name, MIME type, uploader, timestamps), optionally tagging each revision for audit/traceability.

    Parameters

    • files: UploadedFile[]

      Files received from the client

    • fileTypes: string[]

      Validated MIME types corresponding to each file

    • user: User

      Authenticated user responsible for the upload

    • tags: string[] = []

      Optional tags applied to each created file revision

    Returns Promise<FileInstance[]>

    Array of File revisions ready to be associated to a Thing