Open navigation

Fix - file is larger than the permitted size

Modified on: Wed, 25 Jan, 2023 at 3:10 PM

If you are attempting to upload a Paired Configuration to iTDS and receive an error stating "The file you are attempting to upload is larger than the permitted size." as shown in the screenshot below, this error occurs because from Maltego Desktop Client v4.2 onward the icon size is increased to 96-pixels and additional icons were added. If these icons are exported to a Paired Configuration the file size is relatively higher oc previous versions.

There is a quick fix that can be made to the iTDS container.

Step 1. Log into iTDS VM/Server

Step 2. Obtain the Container ID of the Maltego iTDS PHP container

docker container ls

Use sudo if required.

Sample output

CONTAINER ID        IMAGE                                 COMMAND                  CREATED             STATUS              PORTS                  NAMES
e42be0aec876   "bash -c 'service ap…"   3 months ago        Up 21 minutes>443/tcp   maltego_itdsphp_1

Step 3.  Log into the Maltego iTDS PHP container terminal

docker exec -it e42be0aec876 bash

Use sudo if required, Container ID could be different in each case.

Sample output:


Step 4. Edit "configurations.php"

nano /var/www-ssl/iTDS/application/controllers/configurations.php

To save press Ctrl+x and then y.

#Change the value of $config['max_size'] parameter in line 14 from '2000' to '20000' (value in Kilobytes), i.e. 10 X increase in size support.

8          function Configurations()
9          {
10                  parent::__construct();
11                  $this->load->library('form_validation');
12                  $config['upload_path'] = '/usr/local/paired_config/';
13                  $config['allowed_types'] = 'mtz';
14                  $config['max_size']     = '20000';
16                  $this->load->library('upload', $config);
17          }

Step 5. Upload Paired Configuration.

Try re-uploading the Paired Configuration, there is no need to restart the container or any service.

Post Fix (Optional)

To ensure that the Fix is permanently applied, save the container as an image.

The change will be included in the next update of the iTDS.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.