vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Could Someone Help Explain How To Create File System Storage Plz! (https://vborg.vbsupport.ru/showthread.php?t=244305)

Mostjolly 06-09-2010 10:04 PM

Could Someone Help Explain How To Create File System Storage Plz!
 
I've read the manual but am still confused..

Quote:

The attachment file path is the location on your server that you wish to store attachments in.

We suggest you create a path that is above your web root, which means a directory that is not below public_html.

If you wish to create the directory in your web root, we then suggest you place a .htaccess file to block people from accessing it directly. If you do not do this, then anyone will be able to open your attachments directly by navigating this directory in their browser.

This directory must be writable by PHP, which generally means it must either be owned by the same user that your web server is running under or set to permissions 0777 or Global Read/Write on Windows Systems. Please refer to your system documents to find out how to set these permissions.

Please use the full qualified path name to this directory.
In Red: I've create a directory that ABOVE/not in the public_html, it's call MPATT (I also chmod it to 0777)

So what would my path setting look like? /path/to/your/attachment/directory

Something like this? lovester.com/MPATT?

OR....

In Green: If I were to do below public_html, how or what should I be adding in the .htaccess, please give me and example how it'd look like.

Much thx!

BirdOPrey5 06-09-2010 10:40 PM

On the first issue your path would probably be something like:
/home/domaincom/MPATT
there would not likely be a '.com' in it.

On the 2nd issue I don't know what to add, but I know that unless you need to hide attachments for a serious reason (like they are the source of revenue) that it really doesn't matter if you have an .htaccess file or not... just put an index.html file in the folder and no one will be able to browse your attachments- they'd need to know the full name and path to each to view them and so what if they do- unless you'll lose money somehow its no big deal.


All times are GMT. The time now is 03:50 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00961 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete