06-16-2012 06:23 PM
When I try to upload a file it works the first time and then redirects me to another page when it is successful (Amazon S3 success_action_redirect). When I hit the back button and return to my form and upload another file it times out.
My form looks like this:
<form action="http://somebucket.s3.amazonaws.com/" method="post" enctype="multipart/form-data">
<input type="hidden" name="key" value="uploads/${filename}">
<input type="hidden" name="AWSAccessKeyId" value="<AWSAccessKeyId>">
<input type="hidden" name="acl" value="private">
<input type="hidden" name="success_action_status" value="200">
<input type="hidden" name="success_action_redirect" value="http://localhost/">
<input type="hidden" name="policy" value="<policy>">
<input type="hidden" name="signature" value="<signature>">
<input type="hidden" name="Content-Type" value="image/jpeg">
<!-- Include any additional input fields here -->
File to upload to S3:
<input name="file" type="file">
<br>
<input type="submit" value="Upload File to S3">
</form>
The above code works flawlessly in a browser its only on my 9930 sim that gives a problem. I am using phonegap.
06-18-2012 01:46 PM
I think this could be a caching issue. The form page may have stale data that Amazon's service is rejecting. What type of error are you getting?
Are you using META cache tags on that page?
http://www.metatags.info/meta_http_equiv_cache_con
06-18-2012 02:04 PM
Connection Timed out after ~ 12000 and an error 3 in phonegap which is Connection error. I'll update the my code with META tag and see how it goes.
06-18-2012 02:15 PM
10-09-2012 10:24 AM
hi
<form enctype="multipart/form-data method="post">
is it works on os5 browserfield
actually i am also using the same to post form data on another url it is working fine in os 6 but in os 5 i am getting error like this