ES2Web - FileName

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
Locked
Ralph
Posts: 4
Joined: Thu Mar 14, 2013 3:45 pm

ES2Web - FileName

Post by Ralph »

Hi,

I use ES2Web to save stuff on my web server.
All works fine except the "filename" parameter is not passed to the server, it is always "ES2" as the filename.
The record in MySQL database hase filename = "ES2" in es2files table.

Any suggestions ?

Regards.

Ralph
User avatar
Joel
Moodkie Staff
Posts: 4852
Joined: Wed Nov 07, 2012 10:32 pm

Re: ES2Web - FileName

Post by Joel »

Hi Ralph,

Could you please check that you are using the latest version Easy Save 2, and the latest version of the ES2.php file. You'll need to update via the Asset Store to do this.

If this does not fix your problem, could you please paste the code you are using so we can try to replicate your problem, as everything appears to be working fine at our end.

All the best,
Joel
Ralph
Posts: 4
Joined: Thu Mar 14, 2013 3:45 pm

Re: ES2Web - FileName

Post by Ralph »

Here is the code

string myURL = "http://rco.getmyip.com/ES2.php?filename=Bangless";
ES2Settings es2Setting = new ES2Settings("Bangless");
es2Setting.webPassword = WebPassword;
es2Setting.webUsername = WebUserName;
es2Setting.tag = "Swapit-Banner";
ES2Web web = new ES2Web(myURL, es2Setting);
yield return StartCoroutine(web.Upload("iAd"));


The filename in MySql is always "ES2" and not "Bangless"

Thanks for your help.
User avatar
Joel
Moodkie Staff
Posts: 4852
Joined: Wed Nov 07, 2012 10:32 pm

Re: ES2Web - FileName

Post by Joel »

Hi again Ralph,

There appears to be a problem in our implementation whereby the ES2Settings isn't recognising the specified filename. We'll get this fixed in the next update for you, but for the time being, could you do it using just path parameters, like this:
string myURL = "http://rco.getmyip.com/ES2.php?";
myURL += "webpassword=WebPassword";
myURL += "&webusername=WebUsername";
myURL += "&filename=Bangless";
myURL += "&tag=Swapit-Banner";
		
ES2Web web = new ES2Web(myURL);
yield return StartCoroutine(web.Upload("iAd"));
All the best,
Joel
Ralph
Posts: 4
Joined: Thu Mar 14, 2013 3:45 pm

Re: ES2Web - FileName

Post by Ralph »

Works great.

Thanks
Locked