1

Upload image from android to server using cakephp

view story
linux-howto

http://stackoverflow.com – I'm writing an android app that allow to upload image to server(use Cakephp). I can do with pure php like this solution: Upload image from android to cakephp server My problem is that I don't know how to deal with my controller to move file to img directory of cakephp. I already try use the code bellow but it doesn't work. I'm really appreciate your assistant. $target_path = "./"; $target_path = $target_path . basename( $_FILES['picture']['name']); if(move_uploaded_file($_FILES['picture']['tmp_name'], $target_path)) { echo "The file ". basename( $_FILES['picture']['name']). " has been up (HowTos)