JSPM

  • Created
  • Published
  • Downloads 3166
  • Score
    100M100P100Q115536F
  • License MIT

Uploader | File & Image Uploader for Upload.io

Package Exports

  • uploader
  • uploader/dist/main.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (uploader) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Upload.js

File & Image Uploader
(Batteries Included)


Twitter URL

🚀 Working Example — Copy, Paste & Run:

Upload.io is a file upload & file transformation platform, designed for web apps.

This example includes a JavaScript callback for your uploaded file URLs — hosted on Upload.io.

Give it a try!

<html>
  <head>
    <script src="https://js.upload.io/uploader/v1"></script>
    <script>
      const uploader = new Uploader({

        // Replace with your API key. (Get from: https://upload.io/)
        apiKey: "..."

      });

      // Opens the file & image uploader:
      uploader.open({ multi: true }).then(
        files => {
          // Do something with these uploaded file URLs...
          alert(
            `Files uploaded:\n${files.map(x => x.fileUrl).join("\n")}`
          )
        },
        e => console.error(e)
      );
    </script>
  </head>
  <body>
  </body>
</html>

⚙️ Prerequisites

  1. Create an Upload account (it only takes a few seconds).

  2. Install Uploader:

    npm install uploader

    Or:

    <script src="https://js.upload.io/uploader/v1"></script>

🎯 Features

Uploader is an out-the-box file & image uploader for Upload.io.

Use Uploader and Upload.io to achieve:

  • File uploading that works out-the-box.
  • File storage & file hosting. (Zero setup, pre-integrated.)
  • Integrated CDN. (300+ locations, 47+ countries.)
  • File processing. (Image resizing, cropping, etc.)
  • File authorization. (Optional: issue JWTs from your app to define per-user file access.)
  • Monitoring. (Beautiful dashboards to monitor usage & traffic.)
  • And much more, explore Upload.io.

Contribute

If you would like to contribute to Uploader:

  1. Add a GitHub Star to the project (only if you're feeling generous!).
  2. Determine whether you're raising a bug, feature request or question.
  3. Raise your issue or PR. 🚀

License

MIT