Jump to content

How can I setMaxFileSize for a field on a page


rkraemer
 Share

Recommended Posts

I try the Pwbs4 Site template and I found that the Image upload the the Home page is not possible because the upload size limit is to small.

How can I use setMaxFileSize methode on the page template file to correct this?

Thanks for your support in advance ..

Link to comment
Share on other sites

As said above you have to change it in one of php's configuration files.

; Maximum allowed size for uploaded files.  
upload_max_filesize = 40M
; Must be greater than or equal to upload_max_filesize
post_max_size = 40M

 

Quote

PHP_INI_PERDIR: Entry can be set in php.ini, .htaccess, httpd.conf or .user.ini (since PHP 5.3)

http://php.net/manual/en/ini.core.php#ini.upload-max-filesize

http://php.net/manual/en/ini.core.php#ini.post-max-size

http://php.net/manual/en/configuration.changes.modes.php

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...