• Welcome Visitor! Please take a few seconds and Register for our forum. Even if you don't want to post, you can still 'Like' and react to posts.

Figuring out attachments


Jim Oaks

Just some guy with a website
Administrator
Founder / Site Owner
Supporting Vendor
Article Contributor
TRS Banner 2010-2011
TRS Banner 2012-2015
TRS 20th Anniversary
VAGABOND
TRS Event Participant
GMRS Radio License
TRS 25th Anniversary
Joined
Aug 2, 2000
Messages
15,086
Age
57
City
Nocona
State - Country
TX - USA
Other
2005 Jaguar XJ8
Vehicle Year
2021
Vehicle
Ford Ranger
Drive
4WD
Engine
2.3 EcoBoost
Transmission
Automatic
Total Lift
3.5-inches
Tire Size
295/70/17
Somewhere in this forum is a setting on where to store the attachments. I want to store them outside of the forum database.

I need to work on how big the files can be and how big they appear in the posts.

I also need to figure out if I can limit how big peoples images show in the forum when they are use the img tags.

Anyone have any experience with any of that?
 
Ok, I'm dumb. I figured out how to change the attachment storage location.
 
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 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.
or www or www_root) because people will be able to bypass vBulletin's permission system and download them. 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.

I'm not grasping this.

Are they saying if my root is www/public_html/trs/forums to put it in www/somethingelse/storage and not www/public_html/storage ?

This is why I'm considering this:

vBulletin provides you with two options for storing post attachments: 1) you can store them in the database or 2) you can store them in the file system on your web server. Both methods have advantages and disadvantages. The database is more efficient with storage space and is easier to backup than individual files. However, storing attachments in the database is also an extra burden on the database when users download attachments. Other considerations include how you want to restrict access to attachments, whether you want to use vBulletin's permission system or directory permissions like htaccess.

I'm wondering if storing them outside of the database will keep the forum from slowing from users downloading attachments.
 
I would store them outside of the database for a variety of reasons like ease of management, you could easily move and get rid of them at any time, who knows what someone might try to attach (and be successful at!) etc etc.

Also, it sounds like they want the folder at part of your storage that is not web accessible to outsiders. Example...

You SFTP into your web space and see


WWW
.htaccess

The .htaccess file should NOT be accessible by going to www.blah.com/.htaccess ebcause that www.blah.com should actually point to the WWW folder. People wouldn't be able to just "surf" to that .htaccess file or in this case the attachment folder. Something on the server could access it (like the vBulletin system).

Does that make sense? It's a little bit of a sloppy explanation but I'm pretty certain that is what they want you to do.
 

Sponsored Ad


Sponsored Ad

TRS Events

Member & Vendor Upgrades

For a small yearly donation, you can support this forum and receive a 'Supporting Member' banner, or become a 'Supporting Vendor' and promote your products here. Click the banner to find out how.

Recently Featured

Want to see your truck here? Share your photos and details in the forum.

Ranger Adventure Video

TRS Merchandise

Follow TRS On Instagram

TRS Sponsors


Sponsored Ad


Sponsored Ad


Amazon Deals

Sponsored Ad

Back
Top