younicorn_uploadify v1.0.1
Uploadify
Uploadify is an npm package that allows you to easily upload files to the cloud. This README will guide you through the process of setting up and using Uploadify.
Getting Started
- Create an account on uploadify.itsgaurav.co to get your client key and secret.
- Create a
.envfile in the root directory of your project and add your client key and secret in it:API_KEY=your_api_key_here SECRET=your_secret_here Install the
younicorn_uploadifypackage:npm install younicorn_uploadifyCreate an instance of the
uploadifyclass:import uploadify from "younicorn_uploadify" const instance = new uploadify(API_KEY, SECRET)- Use the
uploadmethod to upload a file:const {response, error} = await instance.upload(file)
API
uploadify(API_KEY, SECRET)
Creates a new instance of the uploadify class.
API_KEY- Your Uploadify API key.SECRET- Your Uploadify API secret.
upload(file)
Uploads a file to the cloud.
file- The file to upload.
Returns an object containing the uploaded file's data and any errors that occurred during the upload.
response- The uploaded file's data.response={ url: string; fileName: string; }error- Any errors that occurred during the upload.
License
This project is licensed under the MIT License - see the LICENSE file for details.
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago