Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //When a file is selected, grab the URL and set it as the text field's value
- custom_uploader_photo.on('select', function() {
- var selection = custom_uploader_photo.state().get('selection');
- var count = 0;
- selection.each( function( attachment ) {
- attachment = attachment.toJSON();
- console.log(attachment);
- $("#gallery").append("<img src=" +attachment.url+" name='pic["+count+"]' style='width:150px;height:150px;'>");
- count++;
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement