Skip to main content

Installation

Install the Filejar client and required dependencies:

Setup

Create Filejar Client

Initialize the Filejar client in your ElysiaJS application:

Single File Upload Endpoint

Create an endpoint to upload a single file:

Multiple Files Upload Endpoint

Create an endpoint to upload multiple files:

Retrieve Files from Database

Create endpoints to retrieve file information:

Client-Side Usage

Upload Single File

Upload Multiple Files

Retrieve File

Simply use the file key to construct the URL:

Complete Example

Here’s a complete ElysiaJS server setup with all endpoints: