Posted by petersprc on 12/25/06 06:29
You can use mime_content_type to determine the type of the file by its
name.
detrox@gmail.com wrote:
> Hi, all
>
> I have two questions about uploading files using php & html:
> 1. How can i add a `file type' in the pop window when i click
> `browse' button of the `<input type=file>'.
> 2. How can i get the local path of the uploading file. btw, i know
> there's a $_FILE['userfile']['name'], but it only give me the name not
> the path.
>
> thx very much~~.
>
> ^_^ detrox
Navigation:
[Reply to this message]
|