Welcome to Geeklog, Anonymous Sunday, December 22 2024 @ 09:34 am EST

Geeklog Forums

File upload problems.


TechSys

Anonymous
O.k. I have edited php.ini to have 40M for file uploads, but I am getting an error when I try to upload a file. Here is the error:

PHP Warning: POST Content-Length of 19457939 bytes exceeds the limit of 8388608 bytes in Unknown on line 0, referrer: http://***.***.***.***:***/gl/admin/plugins/filemgmt/index.php?op=newfileConfigAdmin

I have searched the forum for this and came up with nothing. I have also looked in the index.php file in /admin/plugins/filemgmt for 8388608 but it isn't there.

thanks in advance.
 Quote

Status: offline

TechSys

Forum User
Regular Poster
Registered: 12/02/03
Posts: 90
Sorry, I wasn't logged in when I types that. anyways, I wanted to edit it and say this is on geeklog 1.3.9 and is setup using aeonserv 1.5.25
http://70.145.174.180/
 Quote

Status: offline

vadertech

Forum User
Full Member
Registered: 05/26/03
Posts: 329
I believe as you stated, it is due to the size limit in php.ini. Has nothing to do with GL. I would recommend typing part of the error in Google. There is plenty of literature about it.
GeekLog Hosting, Installations and Upgrades - WWW.AWEHOST.COM - Hosting starts @ only $4.95/mo.
 Quote

Status: offline

Blaine

Forum User
Moderator
Registered: 07/16/02
Posts: 1232
Location:Canada
There is also a MAX_POST limit set in php.ini. You may want to check that.

There are no limitations in the plugin on size - it's what ever the webserver will allow (PHP is part of the webserver environment).

You may also want to check out this note on my site
Geeklog components by PortalParts -- www.portalparts.com
 Quote

Status: offline

TechSys

Forum User
Regular Poster
Registered: 12/02/03
Posts: 90
Yea, it is a file size limitation, or it may even be a .zip file problem. I recompressed the file as a .rar, which brough it down to 6.22MB and it uploaded perfectly.
I took a look at the article, but it didn't help out any Sad
I also upped the php.ini to 90M.

Here is something I am thinking, even though the php.ini has the default limitation set to 2MB, when changing it should I put something like 6,523,492 for a 6.22meg file? From the looks of that error I had a limitation of 8meg even though I had the php.ini set to 40M

Now that I know I can upload 6 meg files, I am going to see if I can do 10meg
http://70.145.174.180/
 Quote

DaveC

Anonymous
(this worked for my RedHat9 install)

in /etc/httpd/conf.d/php.conf, increase the value of LimitRequestBody.
It is by default 524288 (0x80000)
Change it to something large - I used 10485760 (0xA00000) which gives me 10Mb, heaps of upload capacity.
 Quote

All times are EST. The time is now 09:34 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content