Article - CS334518

How to increase the size of accepted files sent to ThingWorx and Flow

Modified: 07-Jun-2023   


Applies To

  • ThingWorx Platform 8.5 to 9.3

Description

  • How to increase the size of accepted files sent to ThingWorx and Flow
  • Sent files to ThingWorx are not accepted by Tomcat or by Nginx (if it is used as a reversed proxy) due to their size
  • Workflows using/receiving large files are failing
  • Sending a large file to Flow, Nginx will throw error:
[error] 114118#0: *123456 client intended to send too large body: 22912075 bytes, client: <ip_address>, server: <hostname>, request: "POST /Thingworx/Things/abcThing/Services/UploadFile HTTP/1.1", host: "<hostname>"
  • ThingWorx logs show error:
Content Length (152853249) of https://thingworx.server.name/Thingworx/Things/EntityName/Services/SomeServiceName bigger then max allowed
  • What is the impact on Tomcat memory of modifying the value for the max-allowed-length-in-bytes parameter of the ContentLengthFilter in the web.xml ?
  • What is the maximum recommended value for the max-allowed-length-in-bytes parameter of the ContentLengthFilter in Tomcat's web.xml ?
This is a printer-friendly version of Article 334518 and may be out of date. For the latest version click CS334518