• 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
Joined
Aug 2, 2000
Messages
13,497
Reaction score
8,708
Points
113
Location
Nocona, Texas
Vehicle Year
1996 / 2021
Make / Model
Ford Ranger
Engine Type
4.0 V6
Engine Size
4.0 / 2.3 Ecoboost
Transmission
Automatic
2WD / 4WD
4WD
Total Lift
6-inches
Tire Size
33x12.50x15
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?
 


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
Joined
Aug 2, 2000
Messages
13,497
Reaction score
8,708
Points
113
Location
Nocona, Texas
Vehicle Year
1996 / 2021
Make / Model
Ford Ranger
Engine Type
4.0 V6
Engine Size
4.0 / 2.3 Ecoboost
Transmission
Automatic
2WD / 4WD
4WD
Total Lift
6-inches
Tire Size
33x12.50x15
Ok, I'm dumb. I figured out how to change the attachment storage location.
 

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
Joined
Aug 2, 2000
Messages
13,497
Reaction score
8,708
Points
113
Location
Nocona, Texas
Vehicle Year
1996 / 2021
Make / Model
Ford Ranger
Engine Type
4.0 V6
Engine Size
4.0 / 2.3 Ecoboost
Transmission
Automatic
2WD / 4WD
4WD
Total Lift
6-inches
Tire Size
33x12.50x15
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.
 

DK27

New Member
Joined
Aug 7, 2007
Messages
132
Reaction score
0
Points
0
Location
Elizabethtown, PA
Vehicle Year
1994
Make / Model
Mazda
Transmission
Manual
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

Staff online

Today's birthdays

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.

Truck of The Month


Shran
April Truck of The Month

Recently Featured

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

Follow TRS On Instagram

TRS Events

25th Anniversary Sponsors

Check Out The TRS Store


Sponsored Ad


Sponsored Ad

Sponsored Ad


Amazon Deals

Top