PDA

View Full Version : uploading


tonyb
Wed 9th Mar '05, 6:46am
I have been told that there is a limit of 2mb on uploading files to vbulletin. So if a picture (Jpeg) is 4 mb it can't be uploaded, I want to create a forum for "do it yourself construction" in home building and electrical repair but with a limit on the size of pictures, this would hamper my responces to users questions, in that they would only be able to guess at what I am talking about. If purchasing vbulletin, is there additionnal upgrades that can improve the upload function or a script that can be loaded to improve the 2mb limit to 5mb or higher if needed .Thanks from one of the newest to the board.

ManagerJosh
Wed 9th Mar '05, 7:05am
Actually this is not true. vBulletin's limit on uploading files is based on two things. The first thing is the upload_max_size in php.ini within PHP and the second is the filesize limitation set by the administrator of vBulletin, which allows you to set a max upload size.

Note, the filesize limitation is still governed by php.ini, therefore, if your php.ini limits you to 2MB, the max vBulletin can upload is 2MB, regardless if you put 5MB or 10MB. This is true for any PHP application :)

Steve Machol
Wed 9th Mar '05, 3:38pm
In addition to the vB settings, the allowed size of the attachments depends on the PHP and MySQL configuration. You may need to check and change the upload size for both PHP and for MySQL. Note, you'll need to have root access to the server to do this (or have your host do it.) Make these changes to php.ini:

upload_max_filesize = xM

..and my.cnf (or my.ini for Windows systems)

set-variable=max_allowed_packet=xM

Change it to the size ('x') you want in Megabytes. Restart the webserver and MySQL after making these changes.

Also you might want to take a look at this for other settings that affect file uploads:

http://www.vbulletin.com/forum/showpost.php?p=594570&postcount=12
http://www.vbulletin.com/forum/showthread.php?p=748319#post748319

tonyb
Sun 13th Mar '05, 8:00pm
so xM=10M where 10 is the place of x(size)M

Is this correct and when changing the attachment. php.ini to say 10M this is done just once in the file or is there additional code that must be written to the ini . Thanks

Steve Machol
Sun 13th Mar '05, 8:20pm
All of the server variables affecting file uploads that I know about are in post #3.

tonyb
Mon 4th Apr '05, 11:27am
ok so after weeks of trying to find someone around my area that is using vb, I finally found a guy running a bb with vb 306 and he let me look through his files together with him. We could not find a file called php.ini or ini.php in his download. This guy is not a programmer and neither am I, and he doesn't use uploads, so my question now is, if there is no php.ini file to change, where is it located and how would one gain access to it. We even went to his web server and looked in the index folder for the board and in mysql for his board but did not see anything. Sorry for being so dumb but this is the only way I have of learn how to use something I am planning on buying. I tried the phpbb free version and it is a piece of cr...... Any more info would be appreciated.

Zachery
Mon 4th Apr '05, 11:36am
php's configuration file php.ini and mysql's configuration file my.cnf (or my.ini in windows) are both server level settings that most users cannot and will not have access to this.

Most decent hosts will make changes to php.ini or my.cnf WITHING limits.

As long as your host is not using safemode you would be limited by 8MB by default for uploads, by storing attachments in the filesystem.

tonyb
Mon 4th Apr '05, 11:51am
ok thanks, so before I buy, I need to ask the web hosting provider if they make changes in the configuration files as I would not have access to them. If they don't , Could you recommend a web hosting provider that would, if so I will contact them and if they will, I will buy the latest version of vb. From what I have seen, vb is the best out. Thanks for the info. You guys are quick and the best.

Zachery
Mon 4th Apr '05, 12:09pm
It all really depends. I mean if you are asking for a 10GB upload limit I think most hosts will turn away these requests.

How big of files are you looking to store?

tonyb
Mon 4th Apr '05, 12:16pm
It all really depends. I mean if you are asking for a 10GB upload limit I think most hosts will turn away these requests.

How big of files are you looking to store?

5 to 7mb, jpeg's mostly but a few scripts for calculations of construction of electrical installation/building references.

Zachery
Mon 4th Apr '05, 12:21pm
Then, as long as you find a host that is not running php in safemode, you should be able to make use of storing attachments in the filesystem. Which should put you safely up at about 8MB of uploadable storage :)

tonyb
Mon 4th Apr '05, 12:37pm
Then, as long as you find a host that is not running php in safemode, you should be able to make use of storing attachments in the filesystem. Which should put you safely up at about 8MB of uploadable storage :) thanks, seems as I have a lot more reading to do. You have been very helpful.

Zachery
Mon 4th Apr '05, 12:40pm
If you have any further questions please don't hesistate to ask :)

tonyb
Sat 9th Apr '05, 9:22pm
If you have any further questions please don't hesistate to ask :) Ok , so now that I have purchased 307 , if I choose to store the uploads in the file system, 1) will they still be accessible to users by clicking on the posted file at the bottom of a post, 2) errors in database, can this be fixed by reinstalling vbulletin and how would I save all the post and users to reload to forum or can the errors be fixed by overwriting the forum and reloading a db backup? I get invalid SQL in database message? I have been reading the online manual and other post but some of it I just don't get! Thanks for the replies.

Steve Machol
Sat 9th Apr '05, 9:30pm
Thanks for your purchase. To get vB support on these forums you first need to register for Priority Forum Support. To do this, please go here:

http://www.vbulletin.com/members/membersupport_priority.php

...and enter your email address in one of the boxes. You'll need to have your customer number and
password to access the page.

Once you've done this, please post in the appropriate support forum for your version.