Skip to content

I hope I can have different state for advance Block like Image/File #869

Closed

Description

@wenerme

Is your feature request related to a problem? Please describe.

When pasting or uploading a file, I hope I can return the dataurl/URL.createObjectUrl to user after they paste, then uploading to server in the background, after uploaded I can give the real url to image/file.

This may introduce the pending state to editor, e.g. notify user there are background running process, they should not just submit the form & exit.

Describe the solution you'd like

Maybe expose current ImageBlock to extension, I don't want to build this from ground, but this require the builtin blocks has the extendibility.

Describe alternatives you've considered

Replace the block ?

Additional context

Bonus
[ ] I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Activity

  1. matthewlipski commented on Jun 26, 2024

    @matthewlipski
    Collaborator

    I think this is already partially documented with the resolveFileUrl editor option, which lets you use the string that you have stored on the file block's url prop as an identifier to fetch the file URL async from a backend on render. However, the documentation for this is missing atm so we definitely need to fix that.

  2. wenerme commented on Jun 29, 2024

    @wenerme
    Author

    resolveFileUrl solve the paste url problem, but seems unable to solve the pending load problem. e.g. the upload need seconds, the image block is unable to notify the user they already pasted the image.

  3. matthewlipski commented on Jul 2, 2024

    @matthewlipski
    Collaborator

    I see, that makes sense - I suppose this is more of a UX issue in that case since the work is mostly just in showing a loader or placeholder when the image is being uploaded on paste.

  4. added
    needs-triageIssue has not yet been reviewed or classified by maintainers.
    bug:P3Medium: Noticeable but non-blocking issues.
    and removed
    needs-triageIssue has not yet been reviewed or classified by maintainers.
    bug:P3Medium: Noticeable but non-blocking issues.
    on Feb 3, 2026
  5. locked and limited conversation to collaborators on Feb 10, 2026
  6. converted this issue into a discussion #2445 on Feb 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions