Skip to content

Commit

Permalink
semi good
Browse files Browse the repository at this point in the history
  • Loading branch information
jadwigo committed Dec 11, 2014
1 parent 496424b commit 635ff35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,9 @@ private function processForm($formconfig, $form, $formname)
"%s-%s-%s.%s",
date('Y-m-d'),
str_replace('upload', '', $fieldname),
$this->app['randomgenerator']->generateString(12, 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890'),
pathinfo($originalname, PATHINFO_EXTENSION);
$this->app['randomgenerator']->generateString(12,
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890'),
pathinfo($originalname, PATHINFO_EXTENSION)
);
$link = sprintf("%s%s/%s", $this->app['paths']['hosturl'], $linkpath, $filename);

Expand Down

0 comments on commit 635ff35

Please sign in to comment.