Loading...
 
Skip to main content

Documentation


Upload size for PDF...

Hi,

I've currently a fresh installation of tikiwiki and we want to use it as a "think tank" for some artist (I'm not going to say his name 😊 no spam allowed 😊 )
but that artist also have a magazine and for that he wants to use the think tank because he (and his employees) could upload images, documents etc... which are needed in the magazine and so.

Now I'm having the following problem, when we upload an image tikiwiki says that the image can't be larger than 8 MB, which is great but when we want to upload a PDF document from 5 MB for example, he's complaining that it's to big.

How comes that we can upload images from 8MB and documents less than 5MB (or less)? How can we change this? I've already found that it's probably something with the PHP.ini file, but we can't change this by ourself, because we are hosting somewhere.

Someone could help me?

Regards,

Pieter

Ps: Sorry for my bad english but I'm from Belgium.

As you've already guessed, the maximum upload size is controlled by the php.ini configuration files, specifically the upload_max_filesize setting, as explained in this FAQQuestion.

Even if you're hosting elsewhere, you should be able to add a new php.ini file to your Tiki directory.

HTH,

-RickQuestion
-My Tiki BlogQuestion: Help, Hints, and Hacks

> Hi,
>
> I've currently a fresh installation of tikiwiki and we want to use it as a "think tank" for some artist (I'm not going to say his name 😊 no spam allowed 😊 )
> but that artist also have a magazine and for that he wants to use the think tank because he (and his employees) could upload images, documents etc... which are needed in the magazine and so.
>
> Now I'm having the following problem, when we upload an image tikiwiki says that the image can't be larger than 8 MB, which is great but when we want to upload a PDF document from 5 MB for example, he's complaining that it's to big.
>
> How comes that we can upload images from 8MB and documents less than 5MB (or less)? How can we change this? I've already found that it's probably something with the PHP.ini file, but we can't change this by ourself, because we are hosting somewhere.
>
> Someone could help me?
>
> Regards,
>
> Pieter
>
> Ps: Sorry for my bad english but I'm from Belgium.


Hey Rick,

thanks for the answer but now I'm wondering what code should be in the php.ini.

Let's say for example that I just create a php.ini file with that specifically setting "upload_max_filesize" will he keeps the other settings from the default php.ini file? Or should I create a php.ini file with all the settings in it?

when I place it under etc\ will tikiwiki auto. detects that php.ini?

regards,

Pieter

I believe that you can have multiple files on your site — they simple cascade over each other. If you want to keep the default values and use only a custom upload_max_filesize for your Tiki:

  1. Create a new php.ini and place it in your Tiki's root folder.
  2. Add the following setting to the php.ini file:
    Copy to clipboard
    upload_max_filesize = 2M


That should be it.

HTH,

-RickQuestion
-My Tiki BlogQuestion: Help, Hints, and Hacks

> Hey Rick,
>
> thanks for the answer but now I'm wondering what code should be in the php.ini.
>
> Let's say for example that I just create a php.ini file with that specifically setting "upload_max_filesize" will he keeps the other settings from the default php.ini file? Or should I create a php.ini file with all the settings in it?
>
> when I place it under etc\ will tikiwiki auto. detects that php.ini?
>
> regards,
>
> Pieter

Wait!
Is it not like this:
php.ini file: