
Using UploadThing
Table of Contents
I was working on a NextJS project, there I wanted create a new directory and upload files. I was using Vercel for this so Vercel doesn’t allow this. I started looking for another way to upload and got to know about UploadThing.
UploadThing is an open source project at https://github.com/pingdotgg/uploadthing
So UploadThing is based on T3 tools from AWS.
As of now the plans looks like this.
Ofcourse I’ll try it with Free one.
They ask you to login using Github.
This is what the workspace looks like.
Here Adding project details and server location.
From API section you can get the API Token
Downloading example project:
Github directory downloader.
Download this directory: https://github.com/pingdotgg/uploadthing/tree/main/examples/minimal-appdir
Development process:
- After downloading the project directory.
- Duplicate .env.example file and rename to .env
- Get the API token and paste it inside the new .env file.
yarn
For downloading the packages.
yarn dev
This is the output from example.
Output from UploadThing.
Honestly the example code seems tricky but I’ll grow through it.