Re: php upload on MAC

From: Date: Wed, 15 Aug 2001 06:52:06 +0000
Subject: Re: php upload on MAC
Groups: php.general 
Request: Send a blank email to php-general+get-62779@lists.php.net to get a copy of this message
Jason wrote: > I wrote a script that clients can upload files to our server and > download files but there is one small problem. Mac users can't > upload all of their files. I am guess there is no file extensions. > Anyone have any ideas? > Jason Well, in Mac, there are indeed no mandatory file extensions. The file type is kept in a record in the filesystem, as four bytes of information. This information is not passed along as the file is uploaded. However, the file upload mechanism requires that the browser should send the MIME type of the uploaded file. This information is available to PHP, and, depending on the fidelity of the browsers your users use, it can give you useful information. Herouth

« previous php.general (#62779) next »