Make WordPress Core

Changeset 64588 for trunk/tsconfig.json


Ignore:
Timestamp:
10/20/2026 05:02:48 AM (16 hours ago)
Author:
adamsilverstein
Message:

Media: Enable client-side uploads in the Media Library and modal.

Enable client-side media processing for Uploads from the Media Library grid, the Add New Media File screen and the media modal in the block editor (in supported browsers).

These screens now use the same pipeline as block editor uploads: the original is uploaded through the REST API, sub-sizes are generated in the browser and sideloaded, then the attachment is finalized. wp_set_up_cross_origin_isolation() now also isolates the Media Library grid and the Add New Media File screen using Document Isolation Policy. Uploads huse the client-side processing still use the existing progress, tile and error UI.

When client-side processing is disabled, uploads fall back to the classic flow unchanged. Audio files, uploaders that do not post attachments, and JPEG/PNG files while plupload resizing is enabled also stay on the classic path, and a HEIC the browser cannot decode is handed to the server when its image editor supports HEIC. The Customizer, Site Icon picker and classic editor are not isolated and keep classic uploads.

See ​https://github.com/WordPress/gutenberg/issues/82409.

Props adamsilverstein, westonruter, andrewserong, sanayasir, arkaprabhachowdhury, logicrays.
Fixes #65661. See #66220.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tsconfig.json

    r64297 r64588  
    2222                "types": [
    2323                        "node",
     24                        "backbone",
    2425                        "wp-globals",
     26                        "media-uploads",
    2527                        "browser-globals",
    2628                        "wp-emoji",
    … …  
    3133        "include": [],
    3234        "files": [
     35                "src/js/_enqueues/admin/media-frame-upload.js",
     36                "src/js/_enqueues/admin/media-new-upload.js",
     37                "src/js/_enqueues/admin/media-upload-pipeline.js",
    3338                "src/js/_enqueues/lib/accordion.js",
    3439                "src/js/_enqueues/lib/codemirror/htmlhint-kses.js",
Note: See TracChangeset for help on using the changeset viewer.