Thread: Major Additions - DownloadsII
View Single Post
  #1879  
Old 11-01-2007, 07:38 PM
RS_Jelle RS_Jelle is offline
 
Join Date: Jul 2005
Posts: 1,276
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by unitedbreaks View Post
I meant using FTP_put()
http://us3.php.net/ftp

The reason for this is because my uploads are timing out considering my shared host has a limit of <= 2MB and users are trying to upload 25-120MB files.
PHP has got an upload limit, that's probably the problem. It's a common issue
If you have full server access, you can edit your php.ini (PHP configuration file) and edit the size there manually. If you are on a shared server, you can put a .htaccess file in your forums directory (where you can find downloads.php) with the following content:
Code:
php_value upload_max_filesize 25M
php_value post_max_size 25M
Ofcourse you can change the 25MB to what you want. It overrides the php.ini setting.

Quote:
Originally Posted by Black Tiger View Post
Are you sure? The question was:

Couldn't it work like this:
1.) He makes a downloads directory on his local server where the forum is, like it should be.
2.) Now via the Add files option, one can upload files, or link to files. If you link to files you need the complete http://siteof.files.com/filenam.zip and the length of the archive.

So If done like this, he should be able to host the files on another server and link to them through downloads II.

Or am I missing something?
That's indeed possible, but I think he means something different with:
Quote:
linking to those files as though they were hosted locally
So I think that's linking to them without revealing the download url (which can't be done with the actual link field)?

Quote:
Originally Posted by yoyoyoyo View Post
thanks for the update. In the future I would love to see an option that is a dropdown menu that allows you to either indicate the size in bytes, kilobytes or megabytes instead of bytes - converting mb's to bytes is a drag. Thanks again.
An argument against this is the fact that bytes are more accurate. And it's pretty easy to know the exact size of a file in Windows: just right click it and choose for properties. There you can see the size (don't look at the "size at disk", that's not the real one).
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01128 seconds
  • Memory Usage 1,778KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete