Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/n2ref/fileup

FileUp - JQuery File Upload
https://github.com/n2ref/fileup

file file-upload javascript jquery js library upload

Last synced: 6 days ago
JSON representation

FileUp - JQuery File Upload

Awesome Lists containing this project

README

        

# FileUp
Библиотека для загрузки файлов на сервер.
Поддерживает выбор нескольких файлов, перетаскивание и индикатор выполнения.

[[DEMO]](https://n2ref.github.io/fileup/)

![Interface](https://raw.githubusercontent.com/n2ref/fileup/gh-pages/src/img/preview.png)

## Documentation

### Install with npm
```shell
$ npm install fileup-js
```

### 1. Events

- onSelect (file)
- onRemove (file)
- onBeforeStart (file, xhr)
- onStart (file)
- onProgress (file, ProgressEvent)
- onSuccess (file, response)
- onError (errorType, options)
- onAbort (file)
- onFinish (file)
- onDragEnter (event)
- onDragOver (event)
- onDragLeave (event)
- onDragEnd (event)

### 2. Options

- id: '',
- url: '',
- input: '',
- queue: '',
- dropzone: '',
- files: [],
- fieldName: 'file',
- extraFields: {},
- lang: 'en',
- sizeLimit: 0,
- filesLimit: 0,
- httpMethod: 'post',
- timeout: null,
- autostart: false,
- templateFile:

```html



[NAME]




[NAME]
([SIZE])



[UPLOAD]
[ABORT]






```