Upload file size changes or get double

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-05-2004
slamdunkinpool@yahoo.com
 
Posts: n/a
Default Upload file size changes or get double

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
  #2 (permalink)  
Old 02-10-2004
slamdunkinpool@yahoo.com
 
Posts: n/a
Default Re: Upload file size changes or get double

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

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:10 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0