I'm trying to upload a file from my iOS device to my IIS webserver (Windows Server Web 2008) but for some reason it does not receive the request if the added file is bigger than a certain size (around 10MB it seems).
I have made a couple more questions about this matter and found a lot of answers from these. I still have a problem with the bigger files not being sent. The previous cap was at 2MB, now it's somewhere around 10MB or so. All the settings in php that could have anything to do with this have been set to either 500MB or 6000 seconds timeout. The maxRequestBuffer for IIS has been set to 500MB aswell and should not be the problem.
Looking at what i have changed allready I would think the problem lies in the app side not sending it at all. Previously the request would be sent and received by the server and the code would be fired, but the file would be ignored as it was too big at that time. However right now when i have a big file the request will not be received.
My Objective-c code is like this:
NSString *theUrl = @"myserverurl";
ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:[NSURL URLWithString:theUrl]];
[request setNumberOfTimesToRetryOnTimeout:2];
[request setShouldContinueWhenAppEntersBackground:YES];
NSTimeInterval timeOutSecs = 60000;
[request setTimeOutSeconds:timeOutSecs];
//[request setUploadProgressDelegate:(id)];
[request setFile:[soundFileURL path] forKey:@"mainfile"];
[request startSynchronous];
If anyone could tell me what is going wrong here it would help me alot! I couldn't find any methods allowing bigger files to be sent so any help on that would be great aswell! :)
Thanks in advance!!
EDIT
After some testing it seems that 11.1MB (5minutes and 48 seconds of sound) is the very maximum. Any bigger than this will result in a failed upload.