I am currently working on gallery kind of iPhone application. According to my requirement, i need to store all the camera captured image into document directory. there is some 10-20 image files in document folder and after that i have to push that application resource document folder on server using single php url. I have attached screenshot for displaying resource folder with some image files.
here is my PHP Code :
$file_path = "../Gallery/";
$file_path = $file_path . basename( $_FILES['Documents']['name']);
if(move_uploaded_file($_FILES['Documents']['tmp_name'], $file_path)) {
echo "Image is upload";
} else{
echo "Image is not Upload";
}
Can someone help me how can i upload document folder on php server ?
Thanks in advance.
Here is my sample code
You need to use/ call the API in a recursive function to get this done.
The below code is for the recursive function which will continue till all the image upload will get finish.
And then you can pass the str object to any parameter of server.
use the base64StringFromData function in your .m file;
You can do it with afnetwroking
And i don't think you can upload folder either you have to upload one image at a time or you have to make zip the folder and send it, and in the php you have to unzip it after saving it.