project-files-uploader v1.1.1
files uploader
To use this app you should:
Install this package with npm - "npm install project-files-uploader --save ".
Import function "main" to your js code - "import main from 'project-files-uploader'".
Optionally: you can use prepared server for this app. You can get it from https://github.com/RostyslavSt/serverUploadFiles. To start server please run the command "npm start". It will start server on localhost:3002. Api for uploading: "http://localhost:3002/upload".
Then in your code you should call function "main" with two parameters
main(<root element>, <server url>)
.<root element>
it is your html tag where you want to add form for uploading files.For example your js code:
<script>
import main from 'project-files-uploader';
const serverURL = 'http://localhost:3002/upload';
const rootElement = document.getElementById('block');
main(rootElement, serverURL);
</script>
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago