Duplicated
Last Updated: 02 Jun 2023 09:18 by ADMIN
Emil
Created on: 19 May 2023 07:50
Category: Upload
Type: Feature Request
0
Kendo React Directory upload

Hello, 

We have migrated to Kendo React (from jQuery) and are unable to use Directory upload functionality which existed in jQuery version:

https://demos.telerik.com/kendo-ui/upload/directoryupload

Currently in order to achieve such functionality, the only way is to inject required file input attributes manually as shown below:

    useEffect(() => {
        if (uploadWrapperRef.current) {
            const targetInput = uploadWrapperRef.current.querySelector('input');

            isFolder
                ? targetInput.setAttribute('webkitdirectory', '')
                : targetInput.removeAttribute('webkitdirectory');
        }
    }, [uploadWrapperRef, isFolder]);

This partially solves the issue, however because the directory upload functionality is not provided natively, we are unable to use drag-and-drop functionality for folders. There is no way to overwrite 'onDrop' functionality, which currently accepts only files but not folders.

Would it be possible to add Directory upload to KendoReact as well?

Kind regards,

Emil

 

 

 

 

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
3 comments
ADMIN
Wissam
Posted on: 02 Jun 2023 09:18

Hi, Emil,

I logged a GitHub item for adding the onDrop event and discussed it with the team in order to increase its priority.

The item will be directly updated when there is any progress on it, you can track it here:

Regards,
Wissam
Progress Telerik

As of R2 2023, the default icon type will be SVG instead of Font. See this blogpost for more information.
Emil
Posted on: 26 May 2023 11:33

Hi Wissam,

Thanks for your reply!

I see that Directory Upload feature is marked as Unplanned. Which means it may take long time until it actually gets released. Do you think it's possible to at least have the 'onDrop' functionality to be exposed so we can add some customization to this action?

Kind regards,

Emil

ADMIN
Wissam
Posted on: 25 May 2023 15:28

Hi, Emil,

We have an already opened item for this feature request which is currently in an unplanned stage since it does not have enough votes.

Therefore, I added a vote on your behalf to increase its priority, you can track it here:

Regards,
Wissam
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!