I have this in my cliente side:
{ type:"clean",
cols:[
{ view: "uploader",
value: 'Attach files',
link:"mytemplate",
upload: "php/upload.php",
width:100,
name:"files",
id:"files"
},
{
id:"mytemplate", autoheight:true,
template:function(data){
var names = [];
if (data.each)
data.each(function(obj){
if (obj.status == "server")
names.push("<a target='__blank' href='php/"+obj.name+"'>"+obj.name+"</a>");
else
names.push(obj.name);
});
return names.join(", ");
},
borderless:true
}
]
},
and got a 404 error after Attach Files : http://localhost:3001/php/upload.php 404 (Not Found)
I’m using NODE JS as a web server, and already have a directory /php inside my public directory (same directory for my test page).