Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.0.0b4

Request #2487 add a getValidExtensions() or appendValidExtension()
Submitted: 2004-10-10 03:30 UTC
From: matte at silent-e dot com Assigned: ashnazg
Status: Closed Package: HTTP_Upload
PHP Version: Irrelevant OS: Irrelevant
Roadmaps: (Not assigned)    
Subscription  
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes. If this is not your bug, you can add a comment by following this link. If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
2009-08-16 14:40 UTC
Package:
Bug Type:
Summary:
From: matte at silent-e dot com
New email:
PHP Version: Package Version: OS:

 

 [2004-10-10 03:30 UTC] matte at silent-e dot com
Description: ------------ I'd like to see a way to either retrieve the current valid extensions or append to the list of extensions. Code to retrieve is below. Simple enough addition. This code could be enhanced to return an array of both the extensions and the mode but for simplicity I've started with this. Reproduce code: --------------- /** * Function to retrieve the current valid extensions * * @access public * @return array an array of extensions */ function getValidExtensions() { return $this->_extensions_check; } Expected result: ---------------- if the append version isn't implemented it's easy enough to simply... $upload->setValidExtensions(array_merge($upload->getValidExtensions(), array('scr', 'pif'))); of course it would probably be good to fix the setValidExtensions() function to remove any duplicates that might appear.

Comments

 [2004-11-25 16:25 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2009-08-16 14:40 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2017-01-12 22:05 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2017-01-17 15:01 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2017-01-17 15:06 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!