Welcome, Guest. Please login or register.
Did you miss your activation email?
February 13, 2012, 02:49:39 AM

Login with username, password and session length
Search:     Advanced search
Wollen Sie dem WebsiteBaker Team beitreten?
Nähere Informationen finden Sie unter hier und auf unserer neuen Webseite.
149700 Posts in 21103 Topics by 7538 Members
Latest Member: ionline
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: file upload restrictions  (Read 702 times)
m2babaey

Offline Offline

Posts: 7


« on: February 01, 2008, 07:31:27 PM »


Hi
admin can upload files in some ways . for example uploading files in media section in admin panel or using download galleries to upload files. but i have noticed that there is no restriction in file type. then one can easily upload trojans to a server. how can we restrict file type?
is there any restriction for file size? how can we change its setting?
thanks
Logged
mape

Offline Offline

Posts: 1


« Reply #1 on: July 07, 2008, 02:13:47 PM »

Hello

Did you find out whether or not there are restrictions for file sizes and how they can be changed? I'm having trouble uploading files myself.
Thank you!
Logged
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6823


WWW
« Reply #2 on: July 07, 2008, 08:50:14 PM »

The upload restriction are not in websitebaker. There might be 2 possible PHP Values, which restrict the uploading of files.

1) upload_max_filesize - found in php.ini and controls the dataamount, usually in MB
2) max_execution_time - also in php.ini restricts the time a script may run, usually in seconds

some hosters do allow overriding these values, some don't ...

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

Argos
Moderator
**
Offline Offline

Posts: 2084


WWW
« Reply #3 on: March 05, 2010, 07:07:17 PM »

Often you can override the settings with a simple .htaccess file with the following content in it:

Code:
php_value upload_max_filesize 20M
php_value post_max_size 20M
php_value max_execution_time 300
php_value max_input_time 300
Logged

Jurgen Nijhuis
Argos Media
Heiloo, The Netherlands
WB Showcase: http://www.mywebsitebaker.com/pages/showcase.php?v&category_id=1242&count=30
----------------------------------------------------------------
Please don't request personal support, use the forums!
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!