1mb limit on create
Opened this issue · 3 comments
sblakey commented
Quip API complains if we create a document with more than 1mb of HTML. This is a very easy limit to hit, since the plugin is currently inlining images with data urls.
sblakey commented
Paths forward:
- Document the limit in the README (least I can do)
- Tell the user when this happens, ask if they want to try again without images (yuck)
- Try using the "import" instead of "create" API, to bypass the limit.
- Avoid inlining images by creating a "stub" document, adding blobs, then posting the document with image URLs pointing to those blobs (slow).
sblakey commented
I have verified (via curl) that the Quip API documentation is interestingly wrong:
- It accepts HTML content, larger than 1MB.
- The content-type should be
multipart/form-data
, NOTapplication/x-www-form-urlencoded
sblakey commented
Now to bludgeon Obsidian's requestURL
into sending correct multipart/form-data
...