Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~49 People Reached
Favorite Forums

1 Posted Topic

Member Avatar for keeper82

Hi everyone! I'm trying to manage images uploads using my own class which renames the uploaded file prepending a random string: [CODE=php]define('UPLOAD_PATH', realpath(APPLICATION_PATH . '/../public/uploads')); class Lib_Form_Element_File extends Zend_Form_Element_File { public function init() { if($this->isUploaded()) { $this->setDestination(UPLOAD_PATH); $realname = $this->getFileName(null, false); do { $filename = UPLOAD_PATH . '/' . md5(time()) …

0
49

The End.