what platform is this app running on? FolderListModel is intended for use with the local filesystem where the application is running on.
Are you just providing a url and want to list the folder structure? Then you should check about a webserver feature called “directory listing”, and why this is disabled by default as it is dangerous. Or is this only about displaying a provided list of folders in an appropriate visual way?
If you can provide more info on the use case, you maybe can get better help and an alternative approach.
My application (PhotoLibrary) runs on android. I have an FTP server. I can see the directories by opening the URL on a browser. So I want to be able to see the directories and download the images under the folders of the root url which I gave.
value is of the HttpRequest that you added above? Do you see the directories there?
By the way the “Content-Type” property of a http request just defines the type of the request (or more precisely the payload body of the request), not its response. I’d assume that the response from the server is not json formatted but rather some xml.
Want to find out if Felgo is a good fit for your company?
As part of the free Business evaluation, we offer a free welcome call for companies, to talk about your requirements, and how the Felgo SDK & Services can help you. Just sign up and schedule your call.
Sign up now to start your free Business evaluation: