unable to show files with new versions
Using ver 26 this functionality used to work when passed a json array of file names from my php backend but in the newer versions (28 and 49) it will load the file system and directories but never shows any files. Is there something that has changed in the newer versions that I need to adjust for
I send a json array like this back
{"files":[{"name":"blank.png","type":"Image File","isFile":true,"size":140,"sizeInBytes":true,"dateModified":"09\/12\/2011 22:08:22","hasChild":false},{"name":"calender.png","type":"Image File","isFile":true,"size":235,"sizeInBytes":true,"dateModified":"05\/23\/2016 13:05:06","hasChild":false},{"name":"close.png","type":"Image File","isFile":true,"size":1777,"sizeInBytes":true,"dateModified":"05\/23\/2016 13:05:06","hasChild":false},{"name":"details_close.png","type":"Image File","isFile":true,"size":686,"sizeInBytes":true,"dateModified":"05\/07\/2016 20:29:12","hasChild":false},{"name":"details_open.png","type":"Image File","isFile":true,"size":709,"sizeInBytes":true,"dateModified":"05\/07\/2016 20:28:52","hasChild":false},{"name":"fall.png","type":"Image File","isFile":true,"size":709,"sizeInBytes":true,"dateModified":"05\/07\/2016 20:28:52","hasChild":false}]}
heres the call
$('#fileExplorer').ejFileExplorer({
path: "assets/site/",
ajaxAction: "assets/includes/functionsAJAX.php",
fileTypes: "*.png,*.jpg,*.jpeg,*.gif,*.doc,*.docx,*.xls,*.xlsx,*.pdf,*.xml,*.PNG,*.JPG,*.JPEG,*.GIF,*.DOC,*.DOCX,*.XLS,*.XSLX,*.PDF,*.XML",
enableResize: false,
isResponsive: true,
showThumbnail: true,
allowMultiSelection: false,
layout: "largeIcons",
width:'100%',
height:'550',
gridSettings:{
columns:[
{field: "name", headerText: "Name", width:'35%' },
{field: "dateModified", headerText: "Date Modified", width:'30%' },
{field: "type", headerText: "Type", textAlign: ej.TextAlign.Center, width:'15%' },
{field: "size", headerText: "Size", textAlign: ej.TextAlign.Center, width:'15%' }
]
},
ajaxSettings: {
read: {
data:{'mode':'getSysImgs'},
type:'POST',
url:"assets/includes/functionsAJAX.php"
},
createFolder: {
data:{'mode':'cfSysImgs'},
type:'POST',
url:"assets/includes/functionsAJAX.php",
success:function(data,status,obj){if(status === 'error'){console.log(data);}}
},
remove: {
data:{'mode':'remSysImgs'},
type:'POST',
url:"assets/includes/functionsAJAX.php",
success:function(data,status,obj){if(status === 'error'){console.log(data);}}
},
rename: {
data:{'mode':'renSysImgs'},
type:'POST',
url:"assets/includes/functionsAJAX.php",
success:function(data,status,obj){if(status === 'error'){console.log(data);}}
},
getDetails: {
data:{'mode':'infoSysImgs'},
type:'POST',
url:"assets/includes/functionsAJAX.php",
success:function(data,status,obj){if(status === 'error'){console.log(data);}}
},
paste: {
data:{'mode':'cpSysImgs'},
type:'POST',
url:"assets/includes/functionsAJAX.php",
success:function(data,status,obj){if(status === 'error'){console.log(data);}}
},
upload: {url:"assets/includes/functionsAJAX.php{0}&mode=uplSysImgs"},
download: {url:"assets/includes/functionsAJAX.php{0}&mode=dlSysImgs"}
},
uploadSettings:{allowMultipleFile:false,autoUpload:false},
tools: {
layout: ["Layout"],
creation: ["NewFolder"],
navigation: ["Upward"],
addressBar: ["Addressbar"],
editing: ["Refresh","Upload","Download","Rename","Delete"],
copyPaste: ["Cut","Copy","Paste"],
getProperties: ["Details"]
},
toolsList: ["layout","addressBar","navigation","creation","editing","copyPaste","getProperties"]
});
Thanks for any help
SIGN IN To post a reply.
1 Reply
BP
Balamurugan P
Syncfusion Team
October 17, 2016 11:35 AM UTC
Hi David,
Sorry for the inconvenience caused.
We were able to reproduce the reported issue at our end and logged a report on this. Also we have created a support incident under your account to track the status of this issue.
Regards,
Balamurugan
SIGN IN To post a reply.
- 1 Reply
- 2 Participants
-
DB David Barrett
- Oct 15, 2016 07:55 PM UTC
- Oct 17, 2016 11:35 AM UTC