[PHP] RESOLVED --> RE: [PHP] Mime type prepeded at file upload

2002-03-25 Thread David McInnis

This was a problem with the version of PHP that I had installed.
PHP-4.0.4pl1. Apparently there is a bug that causes this to be written
to the front of the file.

Solution?  Upgrade.

David McInnis

-Original Message-
From: David McInnis [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 25, 2002 11:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Mime type prepeded at file upload

When I save a file that has been uploaded through PHP it prepends (adds
to the beginning of the file) the mime type.  This renders the file
unusable when it is downloaded as MS Word cannot open the file and tries
to install some kind of converter.

Any ideas for me?

David McInnis


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



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




RE: [PHP] Mime type prepeded at file upload

2002-03-25 Thread Miguel Cruz

In that case, I don't think I understand what you're asking.

Are you saying that the file stored on the server's filesystem after a 
multipart/form-data POSTing has the MIME type added to its content? 
Because our servers handle thousands of such transactions daily and it's 
certainly not happening here.

If you're saying that you're running an obsolete version of PHP, well, 
updating should be a prerequisite to posting with problems.

miguel

On Mon, 25 Mar 2002, David McInnis wrote:

> I have no such statements in my code.  This is looking like a known
> issue in PHP.  I gather that is taken care of in later releases.
> 
> 
> David McInnis
> 
> -Original Message-
> From: Miguel Cruz [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, March 25, 2002 3:47 PM
> To: David McInnis
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Mime type prepeded at file upload
> 
> On Mon, 25 Mar 2002, David McInnis wrote:
> > When I save a file that has been uploaded through PHP it prepends
> (adds
> > to the beginning of the file) the mime type.  This renders the file
> > unusable when it is downloaded as MS Word cannot open the file and
> tries
> > to install some kind of converter.
> 
> My recommendation would be to take out the statements you added to your 
> PHP program that prepend the MIME type.
> 
> miguel
> 
> 
> 


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




RE: [PHP] Mime type prepeded at file upload

2002-03-25 Thread David McInnis

I have no such statements in my code.  This is looking like a known
issue in PHP.  I gather that is taken care of in later releases.


David McInnis

-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 25, 2002 3:47 PM
To: David McInnis
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Mime type prepeded at file upload

On Mon, 25 Mar 2002, David McInnis wrote:
> When I save a file that has been uploaded through PHP it prepends
(adds
> to the beginning of the file) the mime type.  This renders the file
> unusable when it is downloaded as MS Word cannot open the file and
tries
> to install some kind of converter.

My recommendation would be to take out the statements you added to your 
PHP program that prepend the MIME type.

miguel


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



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




Re: [PHP] Mime type prepeded at file upload

2002-03-25 Thread Miguel Cruz

On Mon, 25 Mar 2002, David McInnis wrote:
> When I save a file that has been uploaded through PHP it prepends (adds
> to the beginning of the file) the mime type.  This renders the file
> unusable when it is downloaded as MS Word cannot open the file and tries
> to install some kind of converter.

My recommendation would be to take out the statements you added to your 
PHP program that prepend the MIME type.

miguel


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




[PHP] Mime type prepeded at file upload

2002-03-25 Thread David McInnis

When I save a file that has been uploaded through PHP it prepends (adds
to the beginning of the file) the mime type.  This renders the file
unusable when it is downloaded as MS Word cannot open the file and tries
to install some kind of converter.

Any ideas for me?

David McInnis


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