[eluser]Unknown[/eluser]
Hello,
I m trying to make an upload file on a website and i m using amfphp.
How can i do it?
Today on my save button i m calling this code :
[removed]
var myService = new RemoteObject("MyService");
function save()
{
var obj = new ProjectObject();
obj->setParameter($("#someparameter").val());
myService .call("save", obj , success, error)
function success(data)
{
console.log(data);
alert('Registro salvo com sucesso!');
}
function error(data)
{
console.log(data);
alert('Ocorreu um erro!');
}
}
How can i make upload file working like this?
Remember that the ProjectObject is a PHP class that is beeing mapping by AMFPHP too.
Thanks in advance