[thelist] media/image management

M.G. Noriega manuel at simplelogica.net
Mon Jun 30 15:53:22 CDT 2003

El lun, 30-06-2003 a las 22:27, Chris W. Parker escribió:
> Steve Lewis <mailto:nepolon at worlddomination.net> wrote:
> > Actually, it depends on the web scripting language you are using, and
> > you would generally obtain this data at the time the file was uploaded
> > to your server as the MIME type is included as part of the HTTP POST
> > action from the web browser.
> PHP, and getting it from the HTTP header will probably be even easier than using file. Good thinking.

Chris, after an http upload the mimetype is in the superglobal array
$_FILES. Actually in $_FILES['userfile']['type']

Manuel González Noriega
Simplelógica, construcción web @ http://simplelogica.net
Logicola es el weblog de Simplelógica http://simplelogica.net/logicola/

More information about the thelist mailing list