Announcement

Collapse
No announcement yet.

Attachments as Files or Database??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ctrl-alt-del
    replied
    Originally posted by U2Lynne View Post
    Re-read what you quoted. They do *not* recommend putting it in your vb directory. They recommend putting it *above* your document root. For instance if you have your vb stuff in a folder called /forums and your structure is like: /home/yoursite/public_html/forums then you should put your attachment folder at /home/yoursite/attachments In this manner, they are not accessible directly to people (you can't bypass the security).

    Having them in the filesystem is recommended as your site gets bigger. The downside is that you now need to make sure you backup your attachment folder since it will not get backed up when you backup your database.
    ahh...yes, it should be above the html directory. thanks for the clarification!

    Leave a comment:


  • Lynne
    replied
    Originally posted by ctrl-alt-del View Post
    Yes it's easy. The recommendation by vB is to create a folder in your vB directory.
    Re-read what you quoted. They do *not* recommend putting it in your vb directory. They recommend putting it *above* your document root. For instance if you have your vb stuff in a folder called /forums and your structure is like: /home/yoursite/public_html/forums then you should put your attachment folder at /home/yoursite/attachments In this manner, they are not accessible directly to people (you can't bypass the security).

    Having them in the filesystem is recommended as your site gets bigger. The downside is that you now need to make sure you backup your attachment folder since it will not get backed up when you backup your database.

    Leave a comment:


  • ctrl-alt-del
    replied
    Yes it's easy. The recommendation by vB is to create a folder in your vB directory.

    "If you are moving attachments into the file system, it is recommended that you do *not* place the folder under your web root (usually named public_html or www or www_root) because people will be able to bypass vBulletin's permission system and download them. Also, you will need to make the folder writeable by PHP. The easiest way to do this is CHMOD it 777 (consult your FTP, Telnet, or SSH documentation for more info on how to do this). We do not recommended that you put a folder that is CHMODed 777 under your web root - another good reason to have it located above the document root."

    Leave a comment:


  • mackers8923
    replied
    Attachments...

    To file or not to file...

    Is it easy to change vBulletin to store attachments in filesystem? Any security issues in this??

    Leave a comment:


  • Freezerator
    replied
    A db isn't meant to store files in my opinion. To store as files is better.

    Leave a comment:


  • ctrl-alt-del
    started a topic Attachments as Files or Database??

    Attachments as Files or Database??

    vB,

    I'm wondering what the pros and cons are for having attachments as files versus the database? I have about 200+ MB of attachments so it would obviously grow my database. However, are there distinct advantages that would better suit attachments in a db??

    Thanks!

Related Topics

Collapse

Working...
X