Data Types

Get Started

Upload simplifies file storage, processing, and hosting for web apps.

Follow our documentation for a quick setup:

To install the Upload Widget:

1<html>
2 <head>
3 <script src="https://js.upload.io/uploader/v3"></script>
4 <script>
5 const uploader = Uploader({
6 apiKey: "free" // Replace "free" with your API key.
7 });
8 uploader.open({ maxFileCount: 1 }).then(
9 files => {
10 const fileUrls = files.map(x => x.fileUrl).join("\n");
11 const success = fileUrls.length === 0
12 ? "No file selected."
13 : `File uploaded:\n\n${fileUrls}`;
14 alert(success);
15 },
16 error => {
17 alert(error);
18 }
19 );
20 </script>
21 </head>
22 <body></body>
23</html>

Or with NPM:

npm install uploader
import { Uploader } from "uploader";
const uploader = Uploader({ apiKey: "free" }); // Replace "free" with your API key.
uploader.open({ maxFileCount: 1 }).then(
files => {
const fileUrls = files.map(x => x.fileUrl).join("\n");
const success = fileUrls.length === 0
? "No file selected."
: `File uploaded:\n\n${fileUrls}`;
alert(success);
},
error => {
alert(error);
}
);

The Upload Widget (our ready-made UI component) supports these web frameworks:

The Upload JavaScript SDK (headless library) supports browsers & Node.js:

Learn more about downloading and processing files:

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: