I am currently working with the APIs regarding file search. I have gotten every endpoint to work (Currently coding in C#) but when I go to upload a file using the API, I get a 413 Error saying the request size is too large for the server. The PDF I am sending is only 9mb, and I have successfully sent this exact pdf before and extracted information using file search with the Python SDK. If need be, I will write python scripts to do this separately from my sites server, but because my site is written in .Net Core I would prefer to keep it in that language.
I was wondering if anyone has run into this issue when reaching the APIs without the Node or Python SDKs, I find it odd there is no issue sending a file of this size with python but I cannot in C#. I went through the library on Github and didn't see anything they were doing differently to the file before sending to the API apart from some deep_copy and extract_files mapping.
I am also primarily a JS and C# developer and am nowhere near as well versed in python, though I know enough to get by. If noone has run into this issue, would you know if anything is happening with those 2 functions that I could try to implement in C#? (deep_copy and extract_files) here is a snippet from the repo to see
body = deepcopy_minimal(
{
"file": file,
"purpose": purpose,
}
)
files = extract_files(cast(Mapping[str, object], body), paths=[["file"]])
Any help is appreciated! Thanks
