Jump to content

Problem attachments My clients


Fekra IT

Recommended Posts

My clients are not able to upload any type of attachments , upload is success but when i open the attached file it shows ' blank ' , What you think reason from ?

 

I have submit ticket to WHMCS staff said upgrade your version to latest version

 

am sure there is alternate solution , please share with me your experience with this

Link to comment
Share on other sites

  • 1 month later...

As far as I have tested, it seems that if "attachments" folder is not writable, the file is not saved there, although an entry in the database (in tbltickets table) is created.

 

Therefore, when trying to download the attachment, the "dl.php" function searches for an inexistant file, thus resulting a zero bytes download.

 

In my case, setting the "attachments" folder to be writable by the web server solved the issue.

Link to comment
Share on other sites

Attatchments are working now.

 

The attachments folder itself was chmod 777 but the folder it was in was not.

 

Thanks!

 

The permissions of the parent folder shouldn't affect the child folder - and realistically you should be able to get by with 755 permissions unless the provider is running WHMCS as DSO or CGI without any sort of suEXEC.

Link to comment
Share on other sites

uhm, thats what I thought originally, but might be due to the fact the folder is outside of the web root.

 

In the case:

/home/youraccount/somefolder/attachments

 

You can set /home/youraccount/somefolder to 000 permissions and set the /attachments to 755 and still access attachments.

 

If the parent folder also affected the child folder then everything all the way down to / would have to be 755 or 777.

 

I do guess that it's a moot point as long as it's working :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated