Using .htaccess, is it possible to restrict the php file upload size limit based on type of file ?

For example, the maximum upload limit for images is 2 MB and maximum upload limit for PDF and DOC is 10 MB.