DataObjects/Images.php
authorEdward <edward@roojs.com>
Tue, 15 Jan 2013 02:38:18 +0000 (10:38 +0800)
committerEdward <edward@roojs.com>
Tue, 15 Jan 2013 02:38:18 +0000 (10:38 +0800)
DataObjects/Images.php

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