Re: QuickForm and files.

From: Date: Tue, 04 Nov 2003 07:36:41 +0000
Subject: Re: QuickForm and files.
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-8746@lists.php.net to get a copy of this message
Hi! Ian P. Christian wrote:
Is there anyway to get the content type/mimetype of a submitted file?
getSubmitValue() for file type elements returns the array from $_FILES. Although you'd better use getimagesize() on uploaded file to get its type, not believe the browser.
Also, I noticed that getUploadedFile() is deprecated. How should we be using files with QuickForm?
Use the methods of HTML_QuickForm_file class. The deprecated methods will be removed in 3.2, due out very soon.

« previous php.pear.general (#8746) next »