Page 1 of 1

Can't add attachment

Posted: Wed Aug 19, 2015 7:13 am
by zervis
Script URL: http://pomoc.solidexpert.com
Version of script: 2.4.1
Hosting company: GoDaddy
URL of phpinfo.php:
URL of session_test.php: http://solidexpert.com/sesstion_test.php
What terms did you try when SEARCHING for a solution:

Moved all attachments from 2012-2014 to another folder on hosting company.

Write your message below:

Everything worked ok till today, when trying to add attachment to post I get error:

"File upload failed, try with a smaller or no file attachment."

File size is 22kB, png. Doesn't work also with another files.

Re: Can't add attachment

Posted: Wed Aug 19, 2015 8:42 am
by Klemen
This could simply be a permissions issue, where the script is not allowed to check if file upload exists inside the PHP temporary upload folder.

You have a very old HESK version so the recommended solution would be to update to latest (temporary file checking was removed in newer versions).

Alternatively, you can try if deleting this code from the "inc/attachments.inc.php" file helps:

Code: Select all

    if ( ! file_exists($_FILES['attachment']['tmp_name'][$i]) )
    {
		return hesk_fileError($hesklang['fnuscphp']);
    }