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  


 [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] antonio
Can you please send a diff?
 [2009-08-16 14:40 UTC] cweiske (Christian Weiske)
-Status: Feedback +Status: Verified
This is a valid request, and a diff should not be necessary.
 [2017-01-12 22:05 UTC] ashnazg (Chuck Burgess)
-Assigned To: +Assigned To: ashnazg
 [2017-01-17 15:01 UTC] ashnazg (Chuck Burgess)
 [2017-01-17 15:06 UTC] ashnazg (Chuck Burgess)
-Status: Verified +Status: Closed
Implemented on master branch, to be included in next release.