Welcome to Geeklog, Anonymous Wednesday, December 11 2024 @ 11:30 pm EST
Geeklog Forums
User Image Upload
Status: offline
Creator
Forum User
Full Member
Registered: 07/11/02
Posts: 181
Location:Austin, TX
Whenever I try to upload an user image I get the following error:
ERRORS
File, gear_anim1.gif, is bigger than the 20480 byte limit
I've already set the CONF to 2 meg in config.php and played around with that, I still ALWAYS get the 20480 byte limit error!!!
Anyone have a solution to this problem?
URL's www.deafgolfleague.com
L. Whitworth
L. Whitworth
5
4
Quote
Anonymous
Anonymous
I don't think it has anything to do with php.ini.
Note: 20480 bytes
That's 20k. Indeed, I can upload any photo under 20k and within width/height restrictions and have it on www.deafgolfleague.com with no problems, but anything over 20k gets me the error.
This is something to do with GeekLog 1.3.6 (which I'm using), and NOT php.ini
5
5
Quote
Status: offline
efarmboy
Forum User
Moderator
Registered: 02/26/02
Posts: 147
Are you trying to upload a file > 20K or 2M?
Try setting your php.ini setting: upload_max_filesize = 5M
There also a setting in the geeklog upload.class file that limits uploads for geeklog to 1Meg.
<geeklog_dir>/system/classes/upload.class.php
var $_maxFileSize = 1048576;
5
5
Quote
Status: offline
isol8
Forum User
Regular Poster
Registered: 05/14/02
Posts: 73
Ha, finally someone I can help.
I ran into the same problem and I'm, pretty sure its related to GL and not php.ini, but I could be wrong (I am frequently wrong).
Nevertheless, the way I got around this was to open upload.class.php and around line 313 change this line....
if ($this->_currentFile['size'] > $this->_maxFileSize) {
to a hardcoded maxFileSize like this.....
if ($this->_currentFile['size'] > 3048576) {
It works for me. Probably not a logical fix, but it works.
Hope this helps.
6
6
Quote
Anonymous
Anonymous
I am having a similar problem with 1.5.3 I cannot upload an image 300 high even 250 give an error so what is the image criteria in size height x width - the image will be added in Admin Story creation.
Wayne
5
8
Quote
Status: offline
Creator
Forum User
Full Member
Registered: 07/11/02
Posts: 181
Location:Austin, TX
FOUND THE GREMLIN!!!
L. Whitworth
Thanks for all the help, but these tips had to do with images in stories, not user photos.
After some searching, I found around line 430 in usersettings.php:
$upload->setMaxFileSize(20480); //20KB
Correct me if I'm wrong, but I'm thinking that this should have been set in config.php or otherwise retrieved the the value from there as it seems to do for width and height.
Changed THAT to 2 meg and everything works great now.
---
L. Whitworth
www.finiserv.com
L. Whitworth
5
6
Quote
All times are EST. The time is now 11:30 pm.
- 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