vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Attachments stored on server instead of database (https://vborg.vbsupport.ru/showthread.php?t=171501)

Dave84311 02-26-2008 04:41 PM

Attachments stored on server instead of database
 
I need to store files on my server (a folder in a path) because the load on my server is huge as it is, and I don't think mysql can handle much more of a load.

Does anyone know of a mod that can do this for me, otherwise I will have to write my own

Lynne 02-26-2008 04:47 PM

It's an option in vbulletin. Go to Admin CP > Attachments > Storage type and select to store them in the file system instead. Make sure the directory you create to store the attachments in is chmod to 777.

Dave84311 02-27-2008 02:09 AM

I get tons of errors when trying to do so:

<!-- END CONTROL PANEL HEADER -->

Attachment : <b>36</b> Filename : <b>Kick Packets.rar</b><br />Attachment : <b>36 Error</b> Could not

create file system directory to hold your attachment.<br />Attachment : <b>40</b> Filename : <b>invisible

.rar</b><br />Attachment : <b>40 Error</b> Could not create file system directory to hold your attachment

.<br />Attachment : <b>41</b> Filename : <b>invis.jpg</b><br />Attachment : <b>41 Error</b> Could not

create file system directory to hold your attachment.<br /><p align="center" class="smallfont"><a href

- Proceed</a></p>

Lynne 02-27-2008 02:51 AM

And did you put the *full* path name to the attachment directory in where it said to - like "/home/yoursitename/attachments" and also make sure the directory is chmod to 777?

Dave84311 02-27-2008 04:23 PM

Indeed, its a windows server so I used a path "C://uploads", and gave the server permissions to write to it, however it just kept giving me errors.

Lynne 02-27-2008 05:35 PM

I would post about this over at vbulletin.com and see if they can help you out.

snakes1100 02-27-2008 05:49 PM

C:\\uploads or C:\uploads

Dave84311 02-28-2008 12:27 AM

Quote:

Originally Posted by snakes1100 (Post 1452308)
C:\\uploads or C:\uploads

Neither work, nor C:// or C:/

snakes1100 02-28-2008 12:58 AM

In that folder try turning off simple file sharing and restart iis for that site.

SEOvB 02-28-2008 01:19 AM

Quote:

Originally Posted by Dave84311 (Post 1452556)
Neither work, nor C:// or C:/

Shouldn't your slashes be facing the other way for windows machines?

IE: C:\


All times are GMT. The time now is 09:43 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.01022 seconds
  • Memory Usage 1,724KB
  • 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
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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