Add an upload column to a data table. Each row has its own uploader instance,
allowing per-row file attachments in a tabular interface.
| ID | Name | Document | Status |
| 1 | Alice Johnson |
|
- |
| 2 | Bob Smith |
|
- |
| 3 | Carol 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;
}
});
});