Skip to content
This repository has been archived by the owner on Mar 20, 2023. It is now read-only.

lkaybob/express-cloud-uploader

Repository files navigation

Express-Cloud-Uploader

NPM install

foo@bar:~$ npm install express-cloud-uploader

What Is This?

This package provides middleware for users who use the Cloud Web Service Manager to easily manage their files for users who use AWs, Google Drives, and OneDrive. If a user wants to upload any Content File to the user's Cloud Service, they can upload it at once by formatting it with a Json file and reducing the effort to upload it directly. Our project is middleware for the Express.js module.

How To Use It

How to Use middleware

Google Drive

googledrive

One Drive

onedrive

AWS S3

AWS

In The Frontend

<form action="/" method="post" enctype="multipart/form-data">
  <input type="Upload wanting file type" name="just name" value="some text">
</form>

Suppose you have a webpage like this, which uploads file to the server.

In The Backend

The pagkage's supporting upload file type is multipart/form-data. You may do the rest as you wish.

let api = require("express").Router();
api.post("/", uploader({provider: "onedrive", path: ""}), (req, res) => {
});
module.exports=api;

Credits

  • aws-sdk (Github / NPM)

    • How to use Google-drive-api for Nodejs
  • google-api-nodejs (Github / NPM)

    • nodeJS api using Google api2
    • Client
  • OneDrive-Graph-api (Evernote)

    • how to use onedrive
  • formidable (Github / NPM)

    • Library to assist with multipart payload parsing of HTTP requests
  • s3-sdk-nodejs (Opentutorials)

    • How to use s3-sdk for Nodejs

License

Expres-Cloud-Uploader is released under Apache License V2.0. See LICENSE for more information

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published