Can't add attachment

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
zervis
Posts: 1
Joined: Wed Aug 19, 2015 7:04 am

Can't add attachment

Post 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.
Klemen
Site Admin
Posts: 10168
Joined: Fri Feb 11, 2005 4:04 pm

Re: Can't add attachment

Post 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']);
    }
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply