Why Rename on FileManager triggers the create url instead of the update one?

0 Answers 70 Views
FileManager
Alessandro
Top achievements
Rank 1
Iron
Iron
Iron
Alessandro asked on 20 Sep 2024, 04:58 PM | edited on 23 Sep 2024, 08:51 AM

I am calling the FileBrowser as follow:


            dataSource: {
                schema: kendo.data.schemas.filemanager,
                transport: {
                    read: {
                        url: "/kendo-fm-reader.php",
                        method: "POST"
                    },
                    create: {
                        url: "/kendo-fm-dir-maker.php",
                        method: "POST"
                    },
                    update: {
                        url: "/kendo-fm-updater.php",
                        method: "POST"
                    },
                    destroy: {
                        url: "/kendo-fm-deleter.php",
                        method: "POST"
                    }
                }
            },
            uploadUrl: "/kendo-fm-file-uploader.php"


But when I rename a folder, the page triggered is "/kendo-fm-dir-maker.php" and not "/kendo-fm-updater.php"...

Is that possible and correct?

I think this behaviour is incorrect, as it creates new folders with the name I want to give to the renamed one.

Is there a way to modify this behaviour or I am doing something wrong?

Thank you.

 

Alessandro

Alessandro
Top achievements
Rank 1
Iron
Iron
Iron
commented on 23 Sep 2024, 08:49 AM

This only happens on rename of a direcotry, on file rename the page triggered is correct.
Nikolay
Telerik team
commented on 25 Sep 2024, 09:49 AM

Hello Alessandro,

I just tested the described but renaming a directory correctly executes an Update request on my end:

This is tested on the official Overview FileManager demo by renaming the Documents folder:

https://demos.telerik.com/kendo-ui/filemanager/index

Am I missing something?

Regards,

Nikolay

 

Alessandro
Top achievements
Rank 1
Iron
Iron
Iron
commented on 26 Sep 2024, 02:28 PM

Hi Nicolay,

I retried just now and it works correctly, maybe there was a cache problem... sorry...

Rgards,

Alessandro

No answers yet. Maybe you can help?

Tags
FileManager
Asked by
Alessandro
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or