Posting <file> using libURLMultipartFormData - timeout?
Posted: Fri Aug 01, 2014 10:06 pm
I'm using the libURLMultipartFormData function to post a bunch of data to a webservice. I pass a bunch of parameter pairs (name part, name value) with one of them being a file I'm uploading (a zip) that is predicated with the required text: <file>. Everything works great with smaller files (seems like 10MB and smaller work fine) - and when it's done executing the "post" command and moves on to the next line of code that I have: "put the urlResponse into tURLContent" the ulrResponse is giving me the info of either error or success (in the form of a JSON file).
The problem is with the larger files. The website I'm uploading to shows that the file did indeed successfully upload, but the urlResponse is empty. I suspect that this is because LiveCode has a time limit on the "post" operations because they are blocking further execution of code and so LiveCode and isn't waiting around to receive the JSON. Does anyone have an idea if I might be correct? Is there a way to cause LiveCode to wait longer on a post blocking operation? Any other ideas on what the issue might be?
Thanks.
The problem is with the larger files. The website I'm uploading to shows that the file did indeed successfully upload, but the urlResponse is empty. I suspect that this is because LiveCode has a time limit on the "post" operations because they are blocking further execution of code and so LiveCode and isn't waiting around to receive the JSON. Does anyone have an idea if I might be correct? Is there a way to cause LiveCode to wait longer on a post blocking operation? Any other ideas on what the issue might be?
Thanks.