Retrieving data from a ftp server

Hello, i need to access a ftp server, but as i have no experience retrieving data from server i’ve configured a local server using filezilla, and i am trying to access it. Here is my problem, i’m trying to use the $http service to retrieve some images and JSON files, but i keep getting this error: “XMLHttpRequest cannot load ftp://admin:password@localhost/. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.”. This is my first time trying to do this, so i don’t know if this is the right aproach or if it’s possible to access a ftp server with http requests.

well, the error there is because you’re trying to do a cross origin request, so that won’t work. However you won’t have that problem on the device most likely, so you could always update the url and deploy to an emulator.

Your other error is trying to use $http to do ftp calls…

Your biggest error of all though is…why haven’t you searched for this problem? I googled “ionic access ftp” and literally the first result was a plugin that had examples for Angular and Ionic: https://www.npmjs.com/package/cordova-plugin-ftp