$(document).ready(function(){
    $('.entries').slick({
        slidesToShow: 3,
        variableWidth: true,
        autoplay: true,
        lazyLoad: 'ondemand'
    });
    Dropzone.options.dropzoneSubmitPhoto = {
        paramName: "image",
        maxFilesize: 2 // MB
    };
});

$(document).ready(function(){
    $('.entries').slick({
        slidesToShow: 3,
        variableWidth: true,
        autoplay: true,
        lazyLoad: 'ondemand'
    });
    Dropzone.options.dropzoneSubmitPhoto = {
        paramName: "image",
        maxFilesize: 2, // MB
        init: function() {
            this.on("success", function(file) {
                // Refresh the page to see uploaded contents
                location.reload();
            });
        }
    };
});

Refresh the page when successfully uploading a photo
Refresh the page when successfully uploading a photo
