+1 vote
in I only have text by (4.6k points)

I just want to store the uploaded images in a folder, not in the database as BLOB stype binay data. So in the "qa-config.php" file, I found and removed this line's comment:

define('QA_BLOBS_DIRECTORY', '/screenshot');

Then I created the folder with name "screenshot" in the root path under Q2A's installation folder. Even I have set the folder permission to 777. But this still did not work, when I entered the admin panel it said:

The directory /screenshot defined as QA_BLOBS_DIRECTORY is not writable by the web server.

1 Answer

+1 vote
by (21.2k points)
selected by
Best answer

For this problem, I'm just curious why Question2Answer has not given the clear solution all the time. But do not worry, the solution is indeed easy:

  1. make sure you have removed the comment tag for define('QA_BLOBS_DIRECTORY', '/screenshot');
  2. create a new folder with name "screenshot" under the Q2A's root path, NOTE: not your web hosting's root path - www or public_html folder
  3. Then go to admin page and see if the waring message exists, if it does, go back to define('QA_BLOBS_DIRECTORY', '/screenshot'); and just remove the '/' character before screenshot
  4. That's all, the error message is gone. And from now on, the uploaded image will be stored in separate folder with number name under the "screenshot" folder. The qa_blob table will just store the image file's id not the file iteself any more!
Welcome to Best solution for PC & Software errors, where you can ask questions and receive answers from other members of the community.