Good Day!
i am using ASIFormDataRequest to upload file, now everthing works but the upload of file does not work. it does nothing, but other than that it works fine, i dont understand the reason, can you please help me out. here is my calling code.
[self setRequest:[ASIFormDataRequest requestWithURL:[NSURL URLWithString:@"http://localhost:8888/registerUserASI.php"]]];
[request setPostValue:strDeviceID forKey:@"userDeviceId"];
[request setPostValue:strCurrentDate forKey:@"userDateTime"];
NSData *data = UIImagePNGRepresentation(image.image);
[request setData:[[data base64Encoding] dataUsingEncoding:NSUTF8StringEncoding] forKey:@"userfile"];
btw i have also tried the SetData and AddData methods of this request as well. but same results.
The Php code is Working fine with any file upload but not this one, Can somebody help me out.
It might be php code issue that i am not properly handling for this specific request. but with other methods the uploading is working, but i want to work with this.
thanks
I was not converting space to its %20 just because of that it was not working.