Upload.js
Fully customizable frontend uploader component. UI you are making yourself.
Install
npm install upload.js
Usage
Configuration
If you use jQuery:
;
If you like plain old JS:
const upload = document uploadUrl: '/upload' // may be function;
Autoupload and manual upload
By default input configured to auto upload file. To disable autoupload, set autoUpload
configuration parameter to false, and then call method uploadFile
:
const upload = document autoUpload: false ; upload;
Sandbox
Backend and frontend may be tested in sandbox https://github.com/sokil/php-upload-sandbox. Clone repo and start server.
Backends
Language | Library |
---|---|
PHP Library | https://github.com/sokil/php-upload |
Symfony Bundle | https://github.com/sokil/FileStorageBundle |
Styles
Library has no styles. But you can do your own:
Додати файл
.btn-upload overflow: hidden; input opacity: 0; width: 0.1px; height: 0.1px; position: absolute; label padding: 0; margin: 0; font-weight: 400;