Reputation: 2875
I am using ckfinder for file manager of my website.
I used this post for get url of selectd file.
but how can I access to url of multiple selected files in ckfinder?
Upvotes: 0
Views: 1355
Reputation: 2475
Use third argument of select finder.SelectFunction
handler:
function showFileInfo( fileUrl, file, files ) {
for ( var i = 0; i < files.length; i++ ) {
console.log( files[i].url );
}
}
With this you also get whole array of selected files which contains information about file like name, size, etc.
Upvotes: 1