XB-AI fails to gracefully handle large image file uploads

Created on 11 August 2025, about 2 months ago

Overview

When a user attempts to upload a very large image file (e.g., 100MB) through the AI chatbotโ€™s image upload feature, the system returns a generic error message: โ€œAn error occurred while processing your request.โ€
A benchmark or warning for maximum file size should be presented to the user, preventing upload of excessively large files.

Proposed resolution

User interface changes

๐Ÿ› Bug report
Status

Active

Version

1.0

Component

โ€ฆย to be triaged

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @neha_bawankar
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia narendraR Jaipur, India
  • Console error message for the above error

    index.js?t0th4u:458 Uncaught QuotaExceededError: Failed to execute 'setItem' on 'Storage': Setting the value of 'aiWizardChatHistory' exceeded the quota.
        at t.D (index.js?t0th4u:458:18193)
        at t.value (index.js?t0th4u:231:3468)
        at t.value (index.js?t0th4u:231:21761)
        at t.value (index.js?t0th4u:389:5869)
        at t.value (index.js?t0th4u:389:5438)
        at t.<anonymous> (index.js?t0th4u:431:3278)
        at u (index.js?t0th4u:189:3070)
        at Generator.<anonymous> (index.js?t0th4u:189:2834)
        at Generator.next (index.js?t0th4u:189:3429)
        at MZ (index.js?t0th4u:189:7780)
    D @ index.js?t0th4u:458
    value @ index.js?t0th4u:231
    value @ index.js?t0th4u:231
    value @ index.js?t0th4u:389
    value @ index.js?t0th4u:389
    (anonymous) @ index.js?t0th4u:431
    u @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    Promise.then
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    n @ index.js?t0th4u:431
    (anonymous) @ index.js?t0th4u:431
    u @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    Promise.then
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    n @ index.js?t0th4u:431
    (anonymous) @ index.js?t0th4u:431
    u @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    Promise.then
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    n @ index.js?t0th4u:431
    elementRef.classList.contains.elementRef.onclick @ index.js?t0th4u:431
    index.js?t0th4u:463 AI request failed: SyntaxError: Unexpected token '<', "<br />
    <b>"... is not valid JSON
    handler @ index.js?t0th4u:463
    await in handler
    (anonymous) @ index.js?t0th4u:232
    u @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    r @ index.js?t0th4u:232
    (anonymous) @ index.js?t0th4u:232
    u @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    Promise.then
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    r @ index.js?t0th4u:232
    (anonymous) @ index.js?t0th4u:232
    u @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    r @ index.js?t0th4u:232
    (anonymous) @ index.js?t0th4u:232
    u @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    r @ index.js?t0th4u:232
    (anonymous) @ index.js?t0th4u:232
    u @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    r @ index.js?t0th4u:232
    (anonymous) @ index.js?t0th4u:232
    u @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    r @ index.js?t0th4u:232
    (anonymous) @ index.js?t0th4u:431
    u @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    Promise.then
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    Promise.then
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    n @ index.js?t0th4u:431
    (anonymous) @ index.js?t0th4u:431
    u @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    Promise.then
    MZ @ index.js?t0th4u:189
    o @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    (anonymous) @ index.js?t0th4u:189
    n @ index.js?t0th4u:431
    elementRef.classList.contains.elementRef.onclick @ index.js?t0th4u:431
    
    
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tim.plunkett Philadelphia

    Let's make a max file upload size configurable in the admin UI

  • First commit to issue fork.
  • Pipeline finished with Failed
    about 2 months ago
    Total: 1035s
    #577255
  • Pipeline finished with Failed
    about 2 months ago
    Total: 944s
    #577289
  • Pipeline finished with Failed
    about 2 months ago
    Total: 849s
    #577915
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia utkarsh_33

    I have created a separate issue that will handle the QuotaExceededError ๐Ÿ› XB AI: Encountering QuotaExceededError while saving the chat history in session storage Active .

  • Pipeline finished with Canceled
    about 2 months ago
    Total: 94s
    #578092
  • Pipeline finished with Canceled
    about 2 months ago
    Total: 190s
    #578093
  • Pipeline finished with Canceled
    about 2 months ago
    #578097
  • Pipeline finished with Failed
    about 2 months ago
    Total: 939s
    #578099
  • Pipeline finished with Failed
    about 2 months ago
    Total: 905s
    #578118
  • Pipeline finished with Failed
    about 1 month ago
    Total: 830s
    #584159
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia utkarsh_33

    This is ready for an initial round of review.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 1170s
    #584932
  • Pipeline finished with Failed
    about 1 month ago
    Total: 839s
    #586930
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia narendraR Jaipur, India

    Overall looks good. Some feedback to address.
    Also, Input field error message and description is contradicting. See attached SS.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 464s
    #587175
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia utkarsh_33

    Addressed feedback.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 720s
    #587188
  • Merge request !12#3540725 โ†’ (Merged) created by utkarsh_33
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia utkarsh_33

    utkarsh_33 โ†’ changed the visibility of the branch 3540725-xb-ai-fails-to to hidden.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 173s
    #588692
  • Pipeline finished with Failed
    about 1 month ago
    Total: 1421s
    #588717
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia utkarsh_33

    Successfully migrated to canvas project. This can be reviewed now.

  • Pipeline finished with Failed
    about 1 month ago
    Total: 1085s
    #588733
  • Pipeline finished with Failed
    29 days ago
    Total: 996s
    #592596
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia narendraR Jaipur, India

    Changes looks good to me. Moving it to RTBC.

  • Pipeline finished with Failed
    28 days ago
    Total: 1333s
    #592819
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States tim.plunkett Philadelphia

    Merged, thanks!

  • Now that this issue is closed, please review the contribution record.

    As a contributor, attribute any organization helped you, or if you volunteered your own time.

    Maintainers, please credit people who helped resolve this issue.

Production build 0.71.5 2024