This section provides information about the file/upload endpoint under the media-library/api namespace.

  • Endpoint: /media-library/api/file/upload
  • Method: GET

The file/upload endpoint is designed for uploading files to the media library. Below is a brief guide on how to use this endpoint.

How to Use the file/upload Endpoint

  1. Prepare the File: Ensure that the file you want to upload is ready. This could be an image, video, or any other type of file supported by the media library.
  2. Send a GET Request: Access the endpoint using a GET request. You may need to provide additional parameters depending on the requirements of the media library.

Supported File Types

The media library supports a variety of file types, including:

  • Images: JPEG, PNG, GIF
  • Videos: MP4, MOV, AVI
  • Documents: PDF, DOCX, PPTX

Example Usage

To upload a file, you can use the following URL structure:

https://www.example.com/media-library/api/file/upload?fileType=image&fileName=example.jpg

Here, fileType specifies the type of file, and fileName is the name of the file being uploaded.

Further Reading

For more detailed information on the media library and its features, please refer to our Media Library Documentation.


Image Example