save images online then search and download to ipad

Easy Save 2 has been replaced by Easy Save 3, so is no longer supported.
paul4tune
Posts: 8
Joined: Wed Feb 25, 2015 12:13 am

Re: save images online then search and download to ipad

Post by paul4tune »

sorted he said it was a security rule blocking connections

paul4tune wrote:thank you for looking into this much appreciated ive contacted my server admin
Joel wrote:Hi there,

Thanks for getting the screenshots for me. I've just tested it and it appears that your server is rejecting any requests which have binary POST parameters.

To test this, I created a script which purely uses Unity's WWW class to upload to your ES2.php script which I've attached below. Whenever you add binary data to the POST data, your server returns a 404.
using UnityEngine;
using System.Collections;

public class UploadTest : MonoBehaviour 
{
	IEnumerator Start () 
	{
		WWWForm form = new WWWForm();
		form.AddBinaryData("data", new byte[]{(byte)0});
		WWW www = new WWW("http://www.yoururl.co.uk/ES2.php", form);
		yield return www;

		if(!string.IsNullOrEmpty(www.error))
			Debug.LogError(www.error);
		else
			Debug.Log("Done");
	}
}
You'll need to contact your server provider to get them to remove the restriction, otherwise it will not be possible to send data to your server.

All the best,
Joel
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: save images online then search and download to ipad

Post by Joel »

Glad to hear they managed to find a solution!

- Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
paul4tune
Posts: 8
Joined: Wed Feb 25, 2015 12:13 am

Re: save images online then search and download to ipad

Post by paul4tune »

the new action you speak of when is it due for release or am i getting confused because the only action i see is Download File not Download Filenames

thanks

Joel wrote:Hi there,

Unfortunately I wouldn't be able to assist with the ArrayMaker plugin as I have no experience with it, but Easy Save supports Playmaker's 1.8 array functionality.

Firstly, you would need to follow the instructions here to set up the MySQL database and tables on your server. Then whenever you want to add a new image, you would need to make an FSM in Unity and use the Upload Image action to upload the image to the server.

Then to get a list of files on the server, you can use our upcoming Download Filenames action for Playmaker 1.8. I've attached a UnityPackage below which you can double-click to install the action. You would then need to go through each of these and use the Exists action to check whether it exists locally, and if not, use the Download File action to download it.

Then you can simply use the Load Image action to load it locally.

However, Playmaker isn't well suited to this, especially from a performance perspective.

All the best,
Joel
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: save images online then search and download to ipad

Post by Joel »

Hi there,

Did you download the Playmaker action attached to the second post of this thread, and double-click it while your project is open to install it?

Also note you will need to be using Playmaker 1.8 for the action to appear as it uses Playmaker's array functionality.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Locked