I’m making an app with which the user can record sound and send it to my server. The first part works perfectly. I can record and play the sound. The problem is however that when i try to upload the wav file that is the result of this recording to my server it will not accept any thing that is longer than 2 minutes and a couple of seconds (about 2 MB) smaller files are sent and handled correctly. Any bigger than that results in sending the request but not attaching the file, or attaching the file but the server can’t read it. The first would seem more likely to me. My Objective-c code is as follows:
OBJECTIVE-C CODE
NSString *theUrl = @"http://www.myserver.nl";
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:theUrl]];
[request setFile:[soundFileURL path] forKey:@"mainfile"]; //The file gets added
[request startSynchronous]; //Request is being sent.
Any thoughts or solutions would be greatly appreciated!
PHP’s upload limits are governed by a few settings:
upload_max_filesize
memory_limit
post_max_size
There’s also web-server limits, like Apache’s LimitRequestBody that can kick in long before PHP’s do.