Function addImageFromRemoteUrlWithUpload

  • Add an image from a remote URL while attempting to reuse the configured file upload strategy.

    This is primarily used by the built-in Images module (Pixabay, Pexels, Facebook). When the active upload strategy is base64 or remote, the URL is downloaded as a File first so the same upload pipeline can be reused. If the remote download fails (for example because of CORS), the function falls back to a direct URL add.

    Parameters

    Returns Promise<void>