Mutli-part requests are all part of a single request, they are just chunked into multiple parts that are delimited by boundaries.
I would file a support ticket w/ IBM Cloud and try to get some guidance from them, but it sounds to me like you will either need to: - Find another hosting provider - Self-host - Redesign your app so that docs with attachments are less than 1mb - Redesign your app to use a separate system for storing attachments (eg, AWS S3) That seems like a it's going to affect *a lot* of Cloudant users and maybe with some pressure from users they might consider increasing it. On Friday, December 1, 2017 at 1:45:16 AM UTC-8, Brendan Duddridge wrote: > > Hi, > > So my customers have been informed that Cloudant is moving their shared > cluster to a new IBM Cloud system. They want all my customers that are > using the old Cloudant to transfer over to new IBM Cloud Cloudant service. > > The problem I'm facing now in relation to Couchbase Lite 1.4.x is that > they have reduced the document request size from 64 MB down to only 1 MB. > > This is causing a problem with attachments on my CBLDocuments. > > If I attach a file that's more than 1 MB, I get a "request entity too > large" error. > > I used Charles Proxy to look at the request and it seems that Couchbase > Lite is sending both the attachment and request body in one request. The > attachment in the request is bounded. > > But I though the Multipart Uploader was supposed to send attachments in a > separate request? I'm not seeing that in my testing with Charles. > > What's interesting is when I look in Charles Proxy, I get this for the > request in the top part of the screen: > > PUT ... size = 192.58KB Status = Failed > > But if I look at the request headers, I see this: > > Content-Type multipart/related; > boundary="18B75887-6450-4167-97C0-F2C47D37D700" > Accept-Encoding br, gzip, deflate > Connection keep-alive > Accept */* > User-Agent CouchbaseLite/1.3 (Mac OS X 1.4.1) > Content-Length 1585013 > So the content length is more like 1.58 MB. > > Is there a way to enable attachment uploads as separate requests in > Couchbase Lite 1.4.1? > > I'm using macOS High Sierra 10.13.1 and iOS 11.1.2 > > Thanks, > > Brendan > -- You received this message because you are subscribed to the Google Groups "Couchbase Mobile" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mobile-couchbase/727980e3-428f-48d2-91b0-4cfc5d3257bc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
