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

Request #2487 add a getValidExtensions() or appendValidExtension()
Submitted: 2004-10-09 22:30 UTC Modified: 2009-08-16 09:40 UTC
From: matte at silent-e dot com Assigned:
Status: Verified 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:
Package:
Bug Type:
Summary:
From: matte at silent-e dot com
New email:
PHP Version: Package Version: OS:

 

 [2004-10-09 22: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 11:25 UTC] antonio
Can you please send a diff?
 [2009-08-16 09:40 UTC] cweiske (Christian Weiske)
-Status: Feedback +Status: Verified
This is a valid request, and a diff should not be necessary.