Skip to content

MaxPostPreDataLengthExceeded #45

uberllama opened this Issue Jan 20, 2013 · 3 comments

3 participants


Just tried this gem for the first time and it doesn't work out of the box. I'm getting a bad request error back from amazon with the following error:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>MaxPostPreDataLengthExceeded</Code><Message>Your POST request fields preceeding the upload file was too large.</Message><MaxPostPreDataLengthBytes>20480</MaxPostPreDataLengthBytes><RequestId>9D23B2C9005839DC</RequestId><HostId>tzLn4c+k9tWoF69pDLBmwDdkHHrHuMR/yNYXi0oeIjaqr72HUGUnPsvwjqnIuLbk</HostId></Error>

Ahh I had mistakenly renamed my file field "upload" rather than "file", thinking it was associated with the callback post to the app. restoring it to "file" made everything work groovy. May want to emphasize this in the doc.


I still get the same error, this is my HTML code:

<input id="asset" multiple="multiple" name="asset" type="file" />

Noted, will update doc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.