RichFilemanager icon indicating copy to clipboard operation
RichFilemanager copied to clipboard

Cant multi select image/file from server

Open NinaSts opened this issue 6 years ago • 7 comments

Dear,

i have problems, please help me! after i uploaded images, i cant select multi file and send it to input! with "Wiki" i only can choose 1 file to return input. When i use ctrl to select multi file and "select" all it. only 1 file i right click is choosed.

I need clearly visible example if you can!

Thank you very much.

P/S: Sorry abt my english.

NinaSts avatar Apr 01 '18 06:04 NinaSts

This is not a problem to return URIs of all selected files with "select" operation, but the most text editors I know (CKEditor, TiniMCE, etc.) accept a single file URI solely. Due to this limitation the number of return URIs was reduced to one which corresponds to file that you select with the right mouse button. All other operations (copy, move, delete...) should support multiple files selection.

If you use text editor which allows multiple files selection in a single action let me know and I will try to adapt RichFilemanager for this case.

psolom avatar Apr 01 '18 07:04 psolom

Thank you for your quick reply!

I try to use input and button to get multi file from "RichFilemanager". And via that, all images i choose (ctrl + click or mouse dragging) will return in input with delimiter ' , '. Not use ckeditor or something else.

btw, i use this js to do single image, i wanna multi image call back when i choose multi.

var left = (screen.width/2)-(1400/2); var top = (screen.height/2)-(800/2); $('.choose_image').on('click', function() { var cur_input = $(this).closest('.input-group').children('.image_choose'); var mp_img = $('.ms_img_review'); var opener = window.open("./filemanager", 'targetWindow', 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=1400, height=800, top='+top+',left='+left); function handlePostMessage(e) { var data = e.originalEvent.data; if (data.source === 'richfilemanager') { cur_input.val(data.preview_url); if (mp_img.length > 0) { mp_img.find('img').attr('src', data.preview_url); } opener.close(); } // remove an event handler $(window).off('message', handlePostMessage); } $(window).on('message', handlePostMessage); });

Can you do that xD!

NinaSts avatar Apr 01 '18 07:04 NinaSts

I see your problem and will try to solve it.

psolom avatar Apr 01 '18 08:04 psolom

I have this problem too Hope to fix the problem?

glad-tidings avatar May 19 '18 17:05 glad-tidings

Hi Pavel, We need this enhancement as well due we want to be able to select multiple files and pass them into the callback function.

Is this feature will be implemented in the near future,

Thanks Omar Al Kylaney Senior Web Developer

OmarAlkylaney avatar Jun 05 '18 04:06 OmarAlkylaney

The feature seems much in demand. I'm going to implement it in a week or two.

psolom avatar Jun 05 '18 06:06 psolom

Have you implement it ?

burak94t avatar Oct 16 '21 23:10 burak94t