This app shows how to use the Object Storage feature to upload and manage knowledge base files within the app.
The app enables support agents or admins to:
- Upload files related to KB articles.
- View all uploaded files.
- Retrieve a single file.
- Delete unwanted files.
All operations are performed using the built-in Object Storage feature from the Freshworks Developer Platform.
-
File Upload
- Upload files (e.g., JSON, CSV, images) to Object Storage.
-
List All Files
- Fetch a list of all uploaded files.
-
Get a File
- Retrieve metadata and content URL for a specific file.
-
Delete a File
- Delete a file by its object key.
-
Clone the repository:
git clone https://github.com/freshworks-developers/object-storage-samples.git cd object-storage-samples
-
Install the Freshworks CLI:
npm install -g fdk
-
Run the app locally:
fdk run
-
Test the app in Freshdesk (or any supported product):
- Upload, view, and manage files through the UI.
This app uses the following Object Storage methods:
client.files.upload()
client.files.list()
client.files.get()
client.files.delete()
- Ensure file size and type limits are within Freshworks platform constraints referring to the limits and constraints page.
Feel free to raise issues or PRs to improve the sample app!
GPL-3.0 license