Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Lukas_Scholz
New Contributor II

FortiSOAR // PDF File Upload from E-Mail

Hello There,

We are trying to run a playbook to extract pdf files and upload them as a attachment.
Extraction seems to work fine but we end up getting a error on the upload.

Following is the error in the UI.

\n CS-INTEGRATION-5: Error occurred while executing the connector action ERROR :: 400 Client Error: Bad Request for url: https://localhost/api/3/files :: {'type': 'TypeError', 'message': \"Internal Server Error. Check log 'prod.log' for more details\"} :: Url: https://localhost/api/3/files Call for URL: https://localhost:9595/integration/execute/ failed with status code 400 \n

 

Looking at prod.log in cyops-api/prod.log we can see that there is a Issue with the restrictedMimeTypes. 

[2025-12-02 09:10:07] php.WARNING: Warning: Undefined array key "values" {"exception":"[object] (ErrorException(code: 0): Warning: Undefined array key \"values\" at /opt/cyops-api/src/Service/UtilityService.php:669)"} []
[2025-12-02 09:10:07] php.CRITICAL: Uncaught Error: App\Controller\FilesController::validateMimeType(): Argument #3 ($restrictedMimeTypes) must be of type array, null given, called in /opt/cyops-api/src/Controller/FilesController.php on line 193 {"exception":"[object] (TypeError(code: 0): App\\Controller\\FilesController::validateMimeType(): Argument #3 ($restrictedMimeTypes) must be of type array, null given, called in /opt/cyops-api/src/Controller/FilesController.php on line 193 at /opt/cyops-api/src/Controller/FilesController.php:175)"} []

 

It looks like it is not getting supplied with the restrictedMimeTypes argument. We are using the util connector for the upload in version 3.7.0 . So we do not know where the problem is.

Following is the configuration of the connector

Screenshot 2025-12-02 105050.png

 

And the input to the node in question:

Screenshot 2025-12-02 105158.png

 

Anyone else encountered the Issue? Maybe we are jsut doing something wrong and using the connector wrong. Sadly the documentation for the exact API Call is vague and not that greatly documented.

 

Best Regards,
FortiSOAR 

 

L. Scholz
L. Scholz
1 Solution
Lukas_Scholz
New Contributor II

Solution Found.
It is a apparend Bug in FortiSOAR 7.6.4 that the Restricted Mime Type Setting needs to be filled and cannot be empty. Bug Report was opend on a seperate Channel.

L. Scholz

View solution in original post

L. Scholz
2 REPLIES 2
Lukas_Scholz
New Contributor II

Solution Found.
It is a apparend Bug in FortiSOAR 7.6.4 that the Restricted Mime Type Setting needs to be filled and cannot be empty. Bug Report was opend on a seperate Channel.

L. Scholz
L. Scholz
sugrama5
New Contributor

we have a problem with faz as well.. want it to upload csv reports every hour uncompressed for some splunk dashboards.. evidently it's a new feature request to not zip something :)

Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors