Using an FTP site to store AssetBundles

I’ve set up my AssetBundles on an FTP site but when I try to run in the editor it comes up with the error ‘Access Denied: 530’.

Obviously this means I need to have some script that will login into the FTP site automatically, allowing it to download the files.

Does anyone know of any script for this that they could share? Or documentation that will point me in the right direction?

If you’re using WWW for ftp, its possible it may not work. 530 is a authentication error, you can try to include your username and password in the URI:

ftp://username:password@ftp.blahblahserver.com

and see if that helps. Storing your username and password… and using it in a url will expose it to reflection and others may obtain your credentials for the ftp server. It would be better to setup a service, whether that is a restful like service or just some PHP script that responds to calls to serve up your assetbundles.

http://botsitgames.com/unity-engine-ftp-uzerinden-dosya-cekme/