I have done some more testing, and found that I can send 11 files whose total combined characters are 3777, but if I go above that I get the dreaded ApiSyntaxError.
However if I try to send a single file with 3777 characters I also get the error.
I would have expected the single file to be able to have increased length, as there is less metadata (filepaths etc) to send across, however the opposite seems to be true.
I guess you’re right that it’s not just a size issue… I couldn’t get the minified json request stuff to help though. If I can somehow break through the twelve file barrier I’ll be stoked, although I’d prefer to be able to just send single large files, obviously.
Largest Successful Test (11 small files)
The content of each of those files isn’t 500 characters (it got confused when generating the text), they’re ~340 each and should total 3777. If I add a 12th file of similar length, it goes back to the ApiSyntaxError.
Request Body
"params": {
"files": [
{
"path": "TestElevenBatchDifferent/testFile1.txt",
"content": "This test file is for API testing. Its content is structured to test the API's multiple file upload feature. With exactly 500 characters of text, including all spaces and punctuation marks, this file helps in verifying the API's file handling and storage capabilities. End of the test file content.",
"isBase64": false
},
{
"path": "TestElevenBatchDifferent/testFile2.txt",
"content": "For testing the API, this file is a crucial test. The setup of this file's content is to evaluate the multiple file upload functionality of the API. This file contains exactly 500 characters of text, including all spaces and punctuation marks, aiding in the verification of the API's file handling and storage capabilities. End of the test file content.",
"isBase64": false
},
{
"path": "TestElevenBatchDifferent/testFile3.txt",
"content": "API's testing is facilitated by this test file. The formulation of this file's content is for assessing the API's ability to upload multiple files. Comprising exactly 500 characters of text, including all spaces and punctuation marks, this file is pivotal in confirming the API's file management and storage efficiency. End of the test file content.",
"isBase64": false
},
{
"path": "TestElevenBatchDifferent/testFile4.txt",
"content": "This file, designed for API testing, serves as a critical test. The content of this file is crafted to examine the API's multi-file upload process. Containing exactly 500 characters of text, along with all spaces and punctuation marks, this file is instrumental in assessing the API's capability in file handling and storage. End of the test file content.",
"isBase64": false
},
{
"path": "TestElevenBatchDifferent/testFile5.txt",
"content": "Testing the functionality of the API, this file is a significant test. The organization of this file's content is aimed at testing the API's facility for uploading multiple files. This file, with exactly 500 characters of text including all spaces and punctuation marks, plays a key role in evaluating the API's file handling and storage functions. End of the test file content.",
"isBase64": false
},
{
"path": "TestElevenBatchDifferent/testFile6.txt",
"content": "A test file for API assessment, this file is crucial. Its content is organized to test the API's capacity for multiple file uploads. With a total of exactly 500 characters of text, including all spaces and punctuation marks, this file contributes to verifying the API's file handling and storage proficiency. End of the test file content.",
"isBase64": false
},
{
"path": "TestElevenBatchDifferent/testFile7.txt",
"content": "For API evaluation, this test file is essential. The content here is laid out to test the API's multi-file upload capability. This file, containing exactly 500 characters of text, including all spaces and punctuation marks, is vital in verifying the API's efficiency in file handling and storage. End of the test file content.",
"isBase64": false
},
{
"path": "TestElevenBatchDifferent/testFile8.txt",
"content": "This file is a test for the API. It is designed to test the multiple file upload feature of the API. This file contains exactly 500 characters of text, including all spaces and punctuation marks. This will help in verifying the file handling and storage capabilities of the API. End of the test file content.",
"isBase64": false
},
{
"path": "TestElevenBatchDifferent/testFile9.txt",
"content": "API testing is facilitated by this test file. The arrangement of this file's content aims to assess the multiple file upload functionality of the API. This file, including all spaces and punctuation marks, totals exactly 500 characters of text, which is instrumental in verifying the API's file management and storage capabilities. End of the test file content.",
"isBase64": false
},
{
"path": "TestElevenBatchDifferent/testFile10.txt",
"content": "Testing the API, this file is an essential test. The organization of the content in this file aims to evaluate the API's capability of uploading multiple files. Comprising exactly 500 characters of text, along with all spaces and punctuation marks, this file plays a key role in confirming the API's ability to handle and store files. End of the test file content.",
"isBase64": false
},
{
"path": "TestElevenBatchDifferent/testFile11.txt",
"content": "To test the API, this file is a crucial test. The arrangement of this file's content aims to assess the API's multi-file upload feature. This file, including all spaces and punctuation marks, totals exactly 500 characters of text, which is instrumental in verifying the API's file management and storage capabilities. End of the test file content.",
"isBase64": false
}
]
}