![]() |
AMFPHP + Code FileUpload - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: AMFPHP + Code FileUpload (/showthread.php?tid=57756) |
AMFPHP + Code FileUpload - El Forum - 04-09-2013 [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 |