Jump to content

Question

Posted

Hello - 

I did some searching but couldn't find any answers about the clients documents plugin. Could someone point me in the right direction on why I'm getting a "File could not be written" error when trying to upload a document to a client from  "Account Actions->Documents.  The file is a pdf and is 468KB.  Everything is checked and writable in "Settings->System>General->Basic Setup" but not sure what the path is for the client uploads to check permissions.

Thanks for the help

Blesta 4.7.2

5 answers to this question

Recommended Posts

  • 0
Posted
  On 1/6/2020 at 6:27 PM, Qurius said:

Hello - 

I did some searching but couldn't find any answers about the clients documents plugin. Could someone point me in the right direction on why I'm getting a "File could not be written" error when trying to upload a document to a client from  "Account Actions->Documents.  The file is a pdf and is 468KB.  Everything is checked and writable in "Settings->System>General->Basic Setup" but not sure what the path is for the client uploads to check permissions.

Thanks for the help

Blesta 4.7.2

Expand  

Is your uploads directory defined and writable under Settings > System > General? What are the contents of your uploads directory? It should contain a "1" directory, and that directory should contain some others, one of which is for the download manager. They should be writable by your web server.

  • 0
Posted
  On 1/6/2020 at 7:37 PM, Paul said:

Is your uploads directory defined and writable under Settings > System > General? What are the contents of your uploads directory? It should contain a "1" directory, and that directory should contain some others, one of which is for the download manager. They should be writable by your web server.

Expand  

The directories under the "1" directory are "client_documents" "invoices" and "support_manager_files" . Which of those should the "Uploads Directory" be pointing to in "Settings>System>General" ?

  • 0
Posted
  On 1/6/2020 at 8:02 PM, Qurius said:

The directories under the "1" directory are "client_documents" "invoices" and "support_manager_files" . Which of those should the "Uploads Directory" be pointing to in "Settings>System>General" ?

Expand  

Uploads directory should be the parent directory of the 1 directory. Path is to uploads. Files should be written to the client_documents directory automatically. If they can't be written, and the directory exists, and the path is defined correctly in the settings, then it's likely an ownership or permissions issue.

  • 0
Posted

Ok I see what the issue was. I have two companies and one of them was missing the "client_documents" directory under /uploads/1/. After manually adding that the client uploads are now working.

Thanks Paul for your help.

  • 0
Posted
  On 1/6/2020 at 8:49 PM, Qurius said:

Ok I see what the issue was. I have two companies and one of them was missing the "client_documents" directory under /uploads/1/. After manually adding that the client uploads are now working.

Thanks Paul for your help.

Expand  

Great! Just FYI, the number 1 indicates company ID 1. So a 2nd company would have a directory named 2, third a 3, etc. I assume that's how you have things set, but since you didn't say it was missing from /uploads/2/ I thought it was worth mentioning. You wouldn't have 2 client_documents directories under /uploads/1/.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...