- Home /
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?
Answer by Landern · Aug 27, 2014 at 03:38 PM
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.
Aha I see, obviously I don't want to expose my FTP site, its a bit risky. Could you tell me a little more about those options you mentioned please, so I can have a research into them? Will they work with Android or solely in the Editor? $$anonymous$$any Thanks
follow that steps which i mention