Copy and paste the script tag after jQuery
<!-- Compiled and minified JavaScript -->
<script src="https://fs1.cloudsnob.com/static/uploader.js" token="{{PUBLIC_TOKEN}}"></script>
Use any element that can take a value as a string
<input class="any-selector" type="text" />
$(document).ready(function(){
$('.any-selector').uploader();
});
Option Name | Description |
---|---|
label | The lable for the upload button |
accept | files to eccept ( Exsample "image/*" ) |
fileName | The name of the uploaded file |
$('.any-selector').on('file', function(e, file){
// file.domain
// file.path
});
// window.Uploader;
Uploader.domain
Uploader.token
Option Name | Description |
---|---|
Thumbnail | add width size after url ( Exsample "URL.png/300" ) |