XML Parsing Error: syntax error
Location: https://www.yourstore.com/Admin/RoxyFileman/ProcessRequest?a=DIRLIST&type=image
Line Number 1, Column 1:
Chrome doesn't have this issue.
The reason of this issue that Firefox wants to see "application/json" as a type of response. This response has a type "application/xml".
We need to add the type of response in the header if the response has JSON
Example
public virtual async Task GetFilesAsync(string directoryPath, string type)
{
directoryPath = await GetVirtualPathAsync(directoryPath);
var files = await GetFilesByDirectoryAsync(GetFullPath(directoryPath), type);
GetHttpContext().Response.Headers.Add("Content-Type", "application/json");
await GetHttpContext().Response.WriteAsync("[");
for (var i = 0; i < files.Count; i++)