jmap-kit
    Preparing search index...

    Variable preventBlobUploadOnReadOnlyAccountPluginConst

    preventBlobUploadOnReadOnlyAccountPlugin: ValidationPlugin<
        "invocation",
        BlobUploadRequestInvocationArgs,
    > = ...

    Prevents Blob/upload operations on read-only accounts.

    Read-Only Account Protection for Blob/upload:

    • Validates that the target account's isReadOnly property is false
    • Blob/upload creates new blobs in the account, requiring write access
    • Attempting to upload to a read-only account would fail with an accountReadOnly error

    This validator catches the error client-side before making a server request, providing immediate feedback when attempting to upload blobs to read-only accounts.

    Common read-only scenarios:

    • Shared accounts with read-only permissions
    • Archive or backup accounts
    • Accounts in maintenance mode