Manual Upload
Files are queued on selection but not uploaded until the user clicks a separate "Upload" button. Use the JavaScript API to trigger the upload programmatically.
What you should see: auto-upload is off, so files queue and wait for an explicit start. Only
.jpg up to 10 MB is accepted — validation still runs at selection time, not at upload time.<div id="manual-uploader"></div>
<button id="btn-start">Upload Files</button>
<script>
var uploader = CoreUpload.create('#manual-uploader', {
uploadUrl: '/api/upload/upload',
multiple: true,
autoUpload: false,
maxFileSize: '10MB',
allowedExtensions: '.jpg,.png,.gif,.pdf',
onTaskComplete: function(file, response) {
console.log('Uploaded:', file.name);
}
});
document.getElementById('btn-start').addEventListener('click', function() {
uploader.upload();
});
</script>