-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
49d5bd3
commit 6ced14c
Showing
3 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,56 @@ | ||
# Multiple-Uploader.js | ||
This library is used to upload multiple images with previewing them realtime | ||
|
||
Multiple Uploader is a pure javaScript library that uploads multiple images with previewing them realtime. | ||
|
||
It's fully configurable, can be styled according to your needs. | ||
|
||
<div align="center"> | ||
<img width="674" alt="Multiple Uploader Gif" src="https://s4.gifyu.com/images/multiple-uploader.gif"> | ||
</div> | ||
|
||
## Quickstart | ||
|
||
After Downloading files just add these lines of code: | ||
|
||
```html | ||
|
||
<form action="" method="" enctype="multipart/form-data" ></form> | ||
|
||
<div class="multiple-uploader" id="multiple-uploader"> | ||
<div class="mup-msg"> | ||
<span class="mup-main-msg">click to upload images.</span> | ||
<span class="mup-msg" id="max-upload-number">Upload up to 10 images</span> | ||
<span class="mup-msg">Only images, pdf and psd files are allowed for upload</span> | ||
</div> | ||
</div> | ||
|
||
<script src="./src/js/multiple-uploader.js"></script> | ||
<script> | ||
let multipleUploader = new MultipleUploader().init({ | ||
maxUpload : 20, // maximum number of uploaded images | ||
maxSize:2, // size in mega bytes | ||
filesInpName:'images', // input name attribute that is sent to backend | ||
formSelector: 'form', // form selector, you can provide the id of the form such as #myForm | ||
}); | ||
multipleUploader.clear(); // this function clears all uploaded images | ||
</script> | ||
``` | ||
|
||
|
||
--- | ||
|
||
> ⚠️ **NOTE**: We are currently support uploading images only | ||
## Main features ✅ | ||
|
||
- Image thumbnail previews. | ||
- Image sizes previews on hover. | ||
- Deleting uploaded images. | ||
- Set maximum size for the images. | ||
- Set maximum number of uploaded images. | ||
- Well tested. | ||
|
||
# MIT License |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters