This is a discussion on Upload file size changes or get double within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, I'm using Redhat 9 with standard apache, php installation Apache 2.0 php 4.2.2 I have ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
I'm using Redhat 9 with standard apache, php installation Apache 2.0 php 4.2.2 I have increased upload size in php.ini,php.conf files. When I upload a small size picture it gets uploaded fine but for larger size pictures the file gets corrupted. Example, when I upload 60kb size ..jpg file the file size gets changed to 119kb. And when I try to view this jpg only the top left corner looks fine rest of the picture appears like a big grey box/canvas. I been searching for clues for quite some time now but haven't had any success so far. Thanks |
|
|||
|
Some of my php.ini settings :
max_execution_time=130 memory_limit = 8M post_max_size = 25M file_uploads = On upload_max_filesize = 8M ;upload_tmp_dir= php.conf : LimitRequestBody = 5242880000 Here's snippet from my apache error_log convert: Invalid JPEG file structure: two SOI markers (/var/www/html/support/modules/PNphpBB2/files/perm1_130.jpg). convert: Invalid JPEG file structure: two SOI markers (/var/www/html/support/modules/PNphpBB2/files/perm1_130.jpg). convert: IDAT: CRC error (/var/www/html/support/modules/PNphpBB2/files/perm1.png). convert: Corrupt JPEG data: 63163 extraneous bytes before marker 0xd9 (/var/www/html/support/modules/PNphpBB2/files/perm1.jpg). convert: Corrupt JPEG data: 63163 extraneous bytes before marker 0xd9 (/var/www/html/support/modules/PNphpBB2/files/perm1.jpg). convert: IDAT: CRC error (/var/www/html/support/modules/PNphpBB2/files/perm5.png). convert: Invalid JPEG file structure: two SOF markers (/var/www/html/support/modules/PNphpBB2/files/perm1.jpg). convert: Invalid JPEG file structure: two SOF markers (/var/www/html/support/modules/PNphpBB2/files/perm1.jpg). convert: Corrupt JPEG data: 91552 extraneous bytes before marker 0xd9 (/var/www/html/support/modules/PNphpBB2/files/b106.jpg). convert: Corrupt JPEG data: 91552 extraneous bytes before marker 0xd9 (/var/www/html/support/modules/PNphpBB2/files/b106.jpg). Which group should I post to if this is not the right place? slamdunkinpool@yahoo.com wrote in message news:<c6d299e7.0402050057.1cdc161e@posting.google. com>... > Hi, > > I'm using Redhat 9 with standard apache, php installation > Apache 2.0 > php 4.2.2 > > I have increased upload size in php.ini,php.conf files. When I upload > a small size picture it gets uploaded fine but for larger size > pictures the file gets corrupted. Example, when I upload 60kb size > .jpg file the file size gets changed to 119kb. And when I try to view > this jpg only the top left corner looks fine rest of the picture > appears like a big grey box/canvas. > > I been searching for clues for quite some time now but haven't had any > success so far. > > Thanks |