vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   attachments (https://vborg.vbsupport.ru/showthread.php?t=152016)

vbcustomized 07-12-2007 02:03 AM

attachments
 
Hello all,

I have a small problem I was hoping you could help me out with. My current configuration on my server only allows 2mb php upload file size limit and I have some files that are much larger that i need to post as attachments so non reg'd users can not download them. If I upload directly via ftp how can I then link to them in an attachment? Sorta like hotlinking from my own site.

Thanks in advance.

Eikinskjaldi 07-12-2007 02:49 AM

Just manually add them to your database (and filesystem if you keep attachements on disk).

da_judge 07-13-2007 07:22 PM

Quote:

Originally Posted by vbcustomized (Post 1288806)
Hello all,

I have a small problem I was hoping you could help me out with. My current configuration on my server only allows 2mb php upload file size limit and I have some files that are much larger that i need to post as attachments so non reg'd users can not download them. If I upload directly via ftp how can I then link to them in an attachment? Sorta like hotlinking from my own site.

Thanks in advance.

Just upload a php.ini into your forum root with this in it
PHP Code:

memory_limit 128M
post_max_size 
101M
upload_max_filesize 
100M

max_execution_time 
120 

That should change limit to 100meg

Cheers Judge

Dismounted 07-14-2007 05:39 AM

Quote:

Originally Posted by da_judge (Post 1290217)
Just upload a php.ini into your forum root with this in it
PHP Code:

memory_limit 128M
post_max_size 
101M
upload_max_filesize 
100M

max_execution_time 
120 

That should change limit to 100meg

Cheers Judge

This will not work on shared hosting, and where you do not have root access.

da_judge 07-16-2007 06:13 PM

Quote:

Originally Posted by Dismounted (Post 1290569)
This will not work on shared hosting, and where you do not have root access.

Im on a shared hosting.. no root access... and it works 100% for me.. it can be done via .htaccess file as well... spose each hosting package differant.. but worth a try

Judge


All times are GMT. The time now is 04:41 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.01220 seconds
  • Memory Usage 1,721KB
  • 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_php_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)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