Majid Basirati
Majid Basirati

Reputation: 2875

How to get url of multiple selected file in ckfinder

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

Answers (1)

jodator
jodator

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

Related Questions