Skip to content

Commit

Permalink
fixed - fileupload amazon s3 upload not working as we returned empty …
Browse files Browse the repository at this point in the history
…file namefrom cleanName() method
  • Loading branch information
pollen8 committed Nov 25, 2013
1 parent 14e239a commit d99c11c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions plugins/fabrik_element/fileupload/adaptors/amazons3storage.php
Expand Up @@ -371,21 +371,23 @@ public function clean($path)
/**
* Clean a fle name
*
* @param string $filename file name to clean
* @param int $repeatCounter repeat group counter
* @param string $filename File name to clean
* @param int $repeatCounter Repeat group counter
*
* @return string cleaned name
*/

public function cleanName($filename, $repeatCounter)
{
return $this->randomizeName($filename);
$this->randomizeName($filename);

return $filename;
}

/**
* Delete a file
*
* @param string $filepath file to delete
* @param string $filepath File to delete
*
* @return void
*/
Expand Down

0 comments on commit d99c11c

Please sign in to comment.