You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2010-04-13 23:36:43

bartek
Member
From: Manaus / Amazonas / Brazil
Registered: 2010-04-13
Posts: 4

Management > Documents upload file size, howto change the 2MB limit?

Hello there,

How can one change the file size upload limit in Documents? It is limited to two megabytes. I tried manually uploading a bigger document (PDF) to the /glpi/files/PDF directory but, I can't associate it to anything since its size exceeds the 2MB limit.
I haven't found any place in the setup menu where I could change it.
Any help is appreciated.

Thanks

Bartek
Manaus/Amazonas/Brazil


******************************************
debian 5.0.4 , MySql 5.1, PHP 5, GLPI 0.72.4, OCS 1.3.1

Offline

#2 2010-04-14 07:50:58

FBohnen
Member
From: Manching, Bavaria, Germany
Registered: 2009-02-19
Posts: 113

Re: Management > Documents upload file size, howto change the 2MB limit?

Hello,

Its a php restriction. You've to edit your php.ini (this is for Linux). wink

Has something to do with the values of "post_max_size" and "upload_ max_filesize" in the php.ini

Here is a short script to display your PHP settings: (display only):

<HTML>
<BODY>
<?php
phpinfo();
?>
</BODY>
</HTML>

Name the file phpinfo.php or so. Place it in your websever root document floder and run from your webbrowser.

e.g. http:\\yourserver\phpinfo.php

It also shows the path to your "Loaded Configuration File". Thats the one you've to edit.

Then look for the two settings. When you change your php.ini the "post_max_file size" value has to be greater than the "
"upload_max file_size", e.g 601M and 600M
While your at it, check the short_open_tag. If its Off set it to On. It saves you some trouble with older PHP scripts.

Have fun

Frank


Still nuts about GLPI big_smile
Running glpi 0.84.1 on Ubuntu 12.04 LTS
Why are my posts written so poorly: I was the best dyslexic in my class.

Offline

#3 2010-04-14 16:54:42

bartek
Member
From: Manaus / Amazonas / Brazil
Registered: 2010-04-13
Posts: 4

Re: Management > Documents upload file size, howto change the 2MB limit?

Dankeschön,  das hat funktioniert.

Thank you, it worked like a charm.

Last edited by bartek (2010-04-14 17:01:57)


******************************************
debian 5.0.4 , MySql 5.1, PHP 5, GLPI 0.72.4, OCS 1.3.1

Offline

#4 2010-04-20 15:22:40

yllen
GLPI-DEV
From: Sillery (51)
Registered: 2008-01-14
Posts: 15,278

Re: Management > Documents upload file size, howto change the 2MB limit?

Perfect. I close.


CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6  - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)

Offline

Board footer

Powered by FluxBB