DataObjects/Images.php
authorEdward <edward@roojs.com>
Mon, 14 Jan 2013 05:20:19 +0000 (13:20 +0800)
committerEdward <edward@roojs.com>
Mon, 14 Jan 2013 05:20:19 +0000 (13:20 +0800)
DataObjects/Images.php

index 12bdf8f..ad0f903 100644 (file)
@@ -64,7 +64,7 @@ class Pman_Core_DataObjects_Images extends DB_DataObject
             $y = new File_MimeType();
             $ext = $y->toExt(trim((string) $imageInfo['mime'] ));
             #attachment-'.  $r->id
-            $path = $tmpdir . '/' . time() . '#attachment.' . $ext;
+            $path = $tmpdir . '/' . time() . '.' . $ext;
             if(!file_exists($path)){
                file_put_contents($path, file_get_contents($q['_remote_upload'])); 
             }