PDA

View Full Version : how to move the attachments from the database to the file system?


Stefan118
02-13-2012, 01:25 PM
I would like to move the attachments from the database to the filesystem to increase pageload.

In the ACP I go to:
Attachments
--> Attachment storage type

I have created a new folder called attachments, and gave it the 777 permissions.

In the ACP i have set it like this: /attachments

If i press OK, vB is testing the read/write function and is failing.
"We attempted to write a test file to /attachments, but we were unsuccessful. Please verify that the web server has write/delete permissions for this path."

My forum is installed in the root.
Even if i write down the whole name, including http://www it isnt working.

Please help.

kh99
02-13-2012, 01:38 PM
The folder you specify has to use the file system path, which is different than the url path.

Simon Lloyd
02-13-2012, 01:53 PM
I think you'll want the path as ../Attachments for public_html and ./Attachments for within your forum folder, i only say this because mine is one level above public_html and looks like this ../../Attachments so its path would look (in your cpanel or such) home/Attachments/

Give it a go :)

Stefan118
02-13-2012, 02:03 PM
I think you'll want the path as ../Attachments for public_html and ./Attachments for within your forum folder, i only say this because mine is one level above public_html and looks like this ../../Attachments so its path would look (in your cpanel or such) home/Attachments/

Give it a go :)

That did the job!

Thanks