Using FileManager in our app, and we are seeing the following exception when trying to create a "New Folder". We do not see this error with any other operations, and are able to upload, rename, & delete files/folders without issue. Is this a binding issue with our resulting json (see below)? The funny thing is that this exception does not occur every time we click the "New Folder" button. It shows up maybe 75% of the time.
The exception is:
VM8695:3 Uncaught ReferenceError: extension is not defined
at eval (eval at compile (kendo.all.js:234), <anonymous>:3:164)
at init.refresh (kendo.all.js:70463)
at init.proxy (jquery-3.1.1.js:502)
at init.trigger (kendo.all.js:164)
at init._process (kendo.all.js:7940)
at init._change (kendo.all.js:7889)
at init.proxy (jquery-3.1.1.js:502)
at init.trigger (kendo.all.js:164)
at init.splice (kendo.all.js:5008)
at init.insert (kendo.all.js:7078)
Our FileManager datasource is a configured like this...
dataSource: {
schema: kendo.data.schemas.filemanager,
transport: {
read: {
url:
"MyController/GetObjects/"
,
method:
"POST"
},
create: {
url:
"MyController/CreateObject/"
,
method:
"POST"
},
update: {
url: "
MyController/UpdateObject/"
,
method:
"POST"
},
destroy: {
url:
"MyController/DestroyObject/"
,
method:
"POST"
},
},
},
Our controllers method for CreateObject is:
[HttpPost]
public
ActionResult CreateObject(
string
target)
{
var result = myService.CreateFolder(
"NewFolder"
, target);
return
Json(result, JsonRequestBehavior.AllowGet);
}
And the json results are:
{
"SId"
:
"<guid>"
,
"ObjectType"
:
"Folder"
,
"IsDirectory"
:
true
,
"HasDirectories"
:
false
,
"RootPath"
:
"<some stuff>"
,
"NameSpace"
:
"<some stuff>"
,
"Path"
:
"myDir\\NewFolder"
,
"Name"
:
"NewFolder"
,
"Extension"
:
""
,
"Size"
: 0,
"PathLocator"
:
"<some stuff>"
,
"ParentPathLocator"
:
"<some stuff>"
,
"Created"
:
"\/Date(1593736985477)\/"
,
"CreatedUtc"
:
"\/Date(-62135571600000)\/"
,
"Modified"
:
"\/Date(1593736985477)\/"
,
"ModifiedUtc"
:
"\/Date(-62135571600000)\/"
,
"Content"
:
null
}
Thanks for any advice.
Doran