cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question
Employee
Employee

API - File upload size limit.

Jump to solution

Hello,

Where I can find the "size limit" for the files to be submitted via API?

I understand is 15 MB but I can't find it in the documentation. 

0 Kudos
1 Solution

Accepted Solutions
Employee++
Employee++

Re: API - File upload size limit.

Jump to solution

Hi Nelson,

You can give this a try:

in file /opt/CPUserCheckPortal/conf/httpd.conf :

Find line
LimitRequestBody 30720
Change it to
LimitRequestBody 20000000

(Reference: core - Apache HTTP Server Version 2.4)

in file  /opt/CPUserCheckPortal/conf/php.ini :
Find line
post_max_size = 30K
Change it to
post_max_size = 20M

Above example should raise limit to 20MB.

Regards Thomas 

2 Replies
Employee++
Employee++

Re: API - File upload size limit.

Jump to solution

Hi Nelson,

You can give this a try:

in file /opt/CPUserCheckPortal/conf/httpd.conf :

Find line
LimitRequestBody 30720
Change it to
LimitRequestBody 20000000

(Reference: core - Apache HTTP Server Version 2.4)

in file  /opt/CPUserCheckPortal/conf/php.ini :
Find line
post_max_size = 30K
Change it to
post_max_size = 20M

Above example should raise limit to 20MB.

Regards Thomas 

Employee
Employee

Re: API - File upload size limit.

Jump to solution

I was wondering what would be the upload limit to the Threat Prevention API - Cloud...? - I recently developed a Threat Prevention API Client that basically facilitates to upload a file to the Threat Prevention API for emulation on the 5 environments and also allows you to retrieve the PDF report (just like the gateway but from the desktop) .

Does anybody knows what would be the upload limit... Right now I am following the 15 MB limit specified @  https://threatemulation.checkpoint.com 

Threat Prevention API Client - OK File

Threat Prevention API Client - Malicious File