Skip to content
This repository has been archived by the owner on May 19, 2020. It is now read-only.

Commit

Permalink
Merge pull request #190 from proxdeveloper/master
Browse files Browse the repository at this point in the history
Fixed little error
  • Loading branch information
Visual Idiot committed Feb 3, 2013
2 parents b85dc7e + fd7d87e commit fb9ca21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions anchor/models/extend.php
Expand Up @@ -137,6 +137,9 @@ public static function files() {

public static function upload($file) {
$storage = PATH . 'content' . DS;

if(!is_dir($storage)) mkdir($storage);

$ext = pathinfo($file['name'], PATHINFO_EXTENSION);

$filename = hash('crc32', file_get_contents($file['tmp_name'])) . '.' . $ext;
Expand Down

0 comments on commit fb9ca21

Please sign in to comment.