# fileup-core

> JavaScript core component for upload file to server

Latest version **1.2.7** (published 2023-01-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install fileup-core
pnpm add fileup-core
yarn add fileup-core
bun add fileup-core
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.7 |
| Published | 2023-01-13 |
| First published | 2016-01-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 726.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Vladimir Kozhin |
| Maintainers | affka, moondela |
| Keywords | javascript, uploader |

## Links

- npm: https://www.npmjs.com/package/fileup-core
- Repository: https://github.com/ExtPoint/fileup-core
- Issues: https://github.com/ExtPoint/fileup-core/issues
- npm.io page: https://npm.io/package/fileup-core

## Recent versions

- 1.2.7 (latest) — 2023-01-13
- 1.2.6 — 2022-12-28
- 1.2.5 — 2022-12-28
- 1.2.4 — 2022-12-15
- 1.2.3 — 2022-12-12
- 1.2.2 — 2022-02-09
- 1.2.1 — 2022-02-09
- 1.2.0 — 2021-01-21
- 1.1.2 — 2017-08-17
- 1.1.1 — 2017-08-15
- 1.1.0 — 2017-08-15
- 1.0.10 — 2017-04-10
- 1.0.9 — 2017-03-22
- 1.0.8 — 2017-02-27
- 1.0.7 — 2017-02-18
- … 12 more at https://npm.io/package/fileup-core/versions

## README

# FileUp Core
JavaScript core component for upload file to server

# Features

- No dependencies required;
- No browser plugins (e.g. Adobe Flash) required;
- Worked without UI;
- Multiple file upload;
- Drag & Drop support;
- Upload folders;
- Upload process dimensions: progress, time left, speed;
- Graceful fallback for legacy browsers;
- Pause upload support;
- Chunked uploads;
- Customizable and extensible;
- Sources in es6 (friendly for extends).

# Install

## Npm

```sh
npm install fileup-core --save
```

```js
var FileUp = require('fileup-core');
var uploader = new FileUp({
    backendUrl: '/api/upload',
    // config param..
});

uploader.browse();
```

## Browser

```html
<script src="fileup-core.js"></script>
<script>
    const uploader = new FileUp({
        backendUrl: '/api/upload',
        // config param..
    });
    
    uploader.browse();
</script>
```

# Full config with default params

```js
const config = {
    backendUrl: null,
    form: {
        className: Form,
        container: document.body,
        multiple: false
    },
    dropArea: {
        className: DropArea,
        container: document.body,
        enable: false
    },
    queue: {
        className: QueueCollection,
        maxConcurrentUploads: 3
    },
    queueManager: {
        className: QueueManager
    },
    fileConfig: {
        className: File,
        progress: {
            className: FileProgress,
            speedMinMeasurement: 2,
            speedMaxMeasurement: 5
        }
    },
    uploaderConfigs: {
        iframe: {
            className: IframeUploader,
            container: document.body
        },
        xhr: {
            className: XhrUploader,
            method: 'PUT',
            minProgressUpdateIntervalMs: 500,
            bytesMaxPart: 2097151 * 1024 // ~2Gb
        }
    }
};
```

# Backend

For example, see file tests/web/server.php

---
_Source: https://npm.io/package/fileup-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
