Missing Document after upload


Im having an error uploading big files to SuiteCRM, documents module.

*SuiteCRM 7.11 *
*Linux *
Shared Hosting
PHP 7.4

When I upload big files (900MB / 1GB) file to documents the record is created, but the file isnt actually uploaded.

The record shows this message:

This document is missing a file, most likely due to an error during upload. please retry uploading the file or contact your administrator.

And, the error log shows this entry:

[Wed May 19 21:25:27.142103 2021] [cgi:error] [pid 13199:tid 133106564347648] [client] AH01215: PHP Warning: rename(upload/1d96d5c9-0f95-391d-841a-60a5e41871bb,upload/224f6a73-0a10-8c8f-1b93-60a5e464f8d5): No such file or directory in /home/user/crm.mysite.com/include/UploadStream.php on line 214: /dh/cgi-system/php74.cgi, referer: https://crm.mysite.com/index.php?module=Documents&action=EditView&return_module=Documents&return_action=DetailView

Any clues about that warning? What should I look for to fix this?
Thanks in advance.

It could be two reason.

  1. It could be an issue of file size. Check variables like upload_max_filesize in your php.ini. You can get more info from your apache log
  2. Does upload directory exist in your CRM? if exist make sure you have correct file permission.

Thanks & Regards,

Hi Urdhva.

The php.ini has been changed recently, and alliw to upload up to 2GB. With 500GB has no issue.

About the directory, it might be there with right permissions, because it accept 500GB files… Right? I’ll check that anyways.

Thanks for your help.

Also check in your config.php


So did changing the config help, or not?

For making a succesful upload of large files , I believe these parameters needs to increase in php.ini

  1. max_execution_time
  2. post_maxsize
  3. upload_max_filesize

and at config_override.php


also upload folder permission may be needs to at raised 755 or 775.

Please do not hesitate to reach me if you need any assistance!

Ashish Dwivedi ( CTO at Outright Store).

skype : ashdwi1

Whatsapp : +919005468298

Grab Free Extensions : https://store.outrightcrm.com/free-extension/

1 Like

Thanks for the help :slightly_smiling_face: