Document uploading size problem

hello , i need help about file upload system on crm . i can’t upload 1mb size documents i have this problems …
when i uploading empty text documents its uploading good and i can see it but if i will enter some text in document and trying to upload i have this result … also i changed file upload size but nothing … what i can to do ? help pls i have big problem about !!

crm version : 7.11.13
Sugar 6.5.25 (Build 344)

Hi @Vajexa
Welcome to community!

  1. You want to see preview of the file but the file isn’t image type.
  2. About size. Your web-server (nginx/apache…) control this parameter. Do you restart web-server after change?

can you check your CRM upload folder with the Same ID that you see in the Download URL?
Make sure there is a file in /upload folder with the same ID.

Does the same thing happen with other file extension? PDF, JPG, etc.?

Hi, do these 3 things:

1: Check “Upload” directory permissions
2: and also the permission settings into the crm config.php file.
3: And also restart your apache server after increasing the upload_max_file_size


i already checked upload file id when i uploading new file with 1 kb file uploading correct…

yes i already tried every type of files , but same problem

  1. upload fire permission is : 777
  2. what u mean about permission in cofing.php ? file uploading correctly when its size is 1kb
  3. i already changed file size to 500 mb and restared apache server but same problem

For point 2. Find this index in Config.php file and set it properly

‘default_permissions’ =>
array (
‘dir_mode’ => 1528,
‘file_mode’ => 493,
‘user’ => ‘’,
‘group’ => ‘’,

For permissions::

For Config File permissions:

its look like this what u wrote but no result

Change this line


die($app_strings['ERR_INVALID_FILE_REFERENCE'] . ": " . $local_location);

Provoke the error again and go check if the file exists and is readable.

hi , i changed this but same problem …

pls help i need this document usually

What does it print in front of Invalid File Reference when it gives the error screen?