An open API service indexing awesome lists of open source software.

https://github.com/jamsinclair/ascender

[WIP] Lightweight utilities to support drag'n'drop upload
https://github.com/jamsinclair/ascender

Last synced: 19 days ago
JSON representation

[WIP] Lightweight utilities to support drag'n'drop upload

Awesome Lists containing this project

README

        

# Ascender

> A collection of light utilities to support Drag'n'Drop uploads.

## Usage

Template:
```html
Drop files or click to upload
```

JavaScript:
```js
import { DropZone } from 'ascender';

const instance = DropZone(document.querySelector('.dropzone'));
instance.on('fileadded', file => {
console.log(`${file.name} - ${file.type} - ${file.size} bytes`);
});
```

## Examples

- [Basic usage](https://githubbox.com/jamsinclair/ascender/tree/master/examples/basic)
- [Accepting files of only certain types](https://githubbox.com/jamsinclair/ascender/tree/master/examples/accept-files)
- [Showing image preview](https://githubbox.com/jamsinclair/ascender/tree/master/examples/image-preview)

---

Inspired by:
- [Dropzone.js](http://www.dropzonejs.com)
- [Draggable](https://github.com/shopify/draggable)