createImageUrl method

Future<ObjectUrlResponse> createImageUrl(
  1. String mimeType
)

Creates a URL for uploading an image.

This method generates a pre-signed URL for uploading an image to the specified storage location.

Parameters:

  • mimeType: The MIME type of the image to be uploaded.

Returns:

Implementation

Future<ObjectUrlResponse> createImageUrl(String mimeType) async =>
    await _client.createImageUrl(
      CreateImageUrlRequest(mimeType: mimeType),
      options: await _fetchOptions(),
    );