react-filemanager icon indicating copy to clipboard operation
react-filemanager copied to clipboard

problem with list API

Open gbgssoftware opened this issue 1 year ago • 0 comments

Hi, in react code for list API call, no JSON is used

export function getFileContent(path) {
     return fetch(config.url_get_content + '?path=' + (encodeURIComponent(path) || '/'));
};

While in Angular json is used

export function getFileContent(path) {
     return fetch(config.url_get_content + '?path=' + (encodeURIComponent(path) || '/'));
};

In django this function is used:

def list_(request):
     return HttpResponse(json.dumps(fm.list(json.loads(request.body.decode('utf-8')))))

which accepts json.

I'm using it as branch master. Do I have to use another branch?

Thank you

gbgssoftware avatar Nov 22 '23 20:11 gbgssoftware