In article <000001c2805a$8a2a11a0$4b0a0a0a@skink>, 
[EMAIL PROTECTED] says...
> 
> G'day David
> 
>  > > My problem is that files uploaded through a form are 
>  > > increasing in size.
> 
>  > Doesn't that look like the EOL characters are being 
>  > translated after the fashion of ftp ascii transfers?
> 
>  > Maybe have a look at the two versions in a 
>  > hex viewer and see if that is the case? 
> 
> Yes, I'd considered that.  That was what I'd gone looking for in config
> files etc.  I'd hoped to find a switch for ftp transfer mode.  Didn't
> find one though.
> 
> However, partly because of your email and partly because I noted that
> the file size increase was the same every time (27 bytes) I decided to
> load it into a hex editor.
> 
> What I found was that at the top of the file, the following had been
> added:
> 
> -----8<-----
> Content-Type: image/gif
> 
> -----8<-----
> 
> I also found that if I remove these two lines the image will display
> perfectly.
> 
> So, my next question is, why does my linux box add this to an uploaded
> image and my windows box not do so?  Can someone make a suggestion on
> where I should be looking?  Is the addition of this information a server
> (Apache) thing?  Or is it a php thing?
> 
> CYA, Dave

That's, er, odd?? Dunno whether you might find anything useful from 

http://www.google.com/search?q=upload+file+content+type+form+multipart+ima
ge+php&sourceid=opera&num=0&ie=utf-8&oe=utf-8

(unwrap that). As I understand it, upload by form has nothing to do with 
ftp - it's part of http - and I assume that it is intended to do an 
'exact' copy? Perhaps a code snippet, just in case anyone can pick 
something odd about it.

Cheers
-- 
David Robley
Temporary Kiwi!

Quod subigo farinam

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to