MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
Editar file size upload attachment?
AuthorText
ZerOniX
Junior Member
Avatar

Posts: 25
Contributes: 29

Gender: _MALE_
Online: No
Date: 14/09/2008 09:47
Editar file size upload attachment?
#post11950
Hola tengo una duda..

¿donde edito los valores permitidos para el tamaño de los files forum attachment?


se agradece de antemano la ayuda Smile
Delete Edit Quote
 
subject-28
Senior Member
Avatar

Posts: 158
Contributes: 158

Gender: _NEUTRAL_
Online: No
Date: 14/09/2008 11:00
Re: Editar file size upload attachment?
#post11952
This is a php thing. If you're hosting provider allows it you can change the upload size by doing the following

* php_value upload_max_filesize 10M
* php_value post_max_size 20M

add that to the .htaccess file modify to suit and remove the *'s this should be included where all the others are, dont add it to the bottom or any other place.

Er sorry

Esto se realiza por php usando lo siguiente.

abre tu archivo .htaccess y agrega lo siguiente
php_value upload_max_filesize 10M
php_value post_max_size 20M
cambia los tamanios si se requere, si no copia estos argumentos en tu .htaccess donde esta los restos si lo pones en algun otro lugar te dara errors.
Edited: 14/09/2008 11:02
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5137
Contributes: 2480

Gender: _MALE_
Online: No
Date: 14/09/2008 11:39
Re: Editar file size upload attachment?
#post11959
The limit (in the forum) is 500kb

Open pages/forum/index.php

Find all occurrences of
code
require_once("inc/class/uploadFile.class.php");
$upload = new uploadFile();
$upload->show_errors = false;
$upload->path = "pages/forum/".$siteConfig['forumattachmentfolder']."/";
$upload->field = "attachment";


add after
code
$upload->max_size = 1000000;


setting (in bytes) the max. filesize of your attachments
Delete Edit Quote
 
subject-28
Senior Member
Avatar

Posts: 158
Contributes: 158

Gender: _NEUTRAL_
Online: No
Date: 14/09/2008 23:50
Re: Editar file size upload attachment?
#post11972
Hard coded upload sizes Smile
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5137
Contributes: 2480

Gender: _MALE_
Online: No
Date: 15/09/2008 00:40
Re: Editar file size upload attachment?
#post11977
Only one developer has worked on a so big project Smile

At the moment only few people help me a bit, i'm not a robot
Edited: 15/09/2008 00:42
Delete Edit Quote
 
ZerOniX
Junior Member
Avatar

Posts: 25
Contributes: 29

Gender: _MALE_
Online: No
Date: 15/09/2008 01:56
Re: Editar file size upload attachment?
#post11979
gracias man Smile, esperemos mas modulos, Smile
Delete Edit Quote
 
subject-28
Senior Member
Avatar

Posts: 158
Contributes: 158

Gender: _NEUTRAL_
Online: No
Date: 15/09/2008 02:21
Re: Editar file size upload attachment?
#post11980
And we thank you for the CMS that you have made Smile
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.103.63.59

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo