APIs - what is the file upload limit for pdfs ?

APIs - what is the file upload limit for pdfs ?

I have created a function that uploads pdf documents from a url so that I can effectively move from an old system to Zoho. I read on this page :
https://www.zoho.com/creator/help/api/v2/upload-file.html
However when using invoke to upload pdfs to a file field I get the error that the limit is 5242880 bytes which is approx 5.24mb (i know it's not exact).  I can use invoke to get the file size of each file using getFileSize() and the ones that are failing are all under 20MB.

What's the correct limit ?

This is the function code I am using
  1. void UploadFromExtURL()
  2. {
  3.     for each  varRecord in Contracts[contract_size_check = false]
  4.     {
  5.         //Get the contents of each url saved in the contract_url_link (text) field
  6.         varURL = varRecord.contract_url_link;
  7.         varGetExtURL = invokeurl
  8. [
  9.     url :varURL
  10.     type :GET
  11. ];
  12.         //Get the file size of the link
  13.         varFileSize = varGetExtURL.getFileSize();
  14.         //
  15.         //Find the existing record and update the file size and upload file
  16.         varFindExisting = Contracts[contract_url_link = varURL];
  17.         varFindExisting.contract_file_size=varFileSize;
  18.         varFindExisting.contract_signed_file=varGetExtURL;
  19.     }
  20. }