Data Table Upload Column

Data Table Upload Column

Add an upload column to a data table. Each row has its own uploader instance, allowing per-row file attachments in a tabular interface.

IDNameDocumentStatus
1Alice Johnson
-
2Bob Smith
-
3Carol Lee
-
// Create one uploader per table row
rows.forEach(function (id) {
 AjaxUploader.create(document.getElementById('rowUpload' + id), {
 uploadUrl: '/ajaxupload.axd/upload',
 multiple: false,
 autoUpload: true,
 onComplete: function (file) {
 document.getElementById('rowStatus' + id).textContent = file.name;
 }
 });
});