rdeanar / yii2-file-processor

Upload and process files and images for YII2
12 stars 5 forks source link

error uploading #1

Closed skeeran closed 9 years ago

skeeran commented 9 years ago

when i upload i get this: error uploading

my config

'fp' => [
            'class' => 'deanar\fileProcessor\Module',
            'space_replacement' => '-',
            'variations_config' => require(__DIR__ . '/file_processor_variations.php'),
            'upload_dir' => 'uploads',
            'default_quality' => 95,
            'default_resize_mod' => 'outbound',
            'unlink_files' => true,
        ],
skeeran commented 9 years ago

yii2-file-processor/vendor/FileAPI.php correct in the 1 line from <? to <?php

and in file : yii2-file-processor/controllers/FileAPI.php insert on 2 line namespace deanar\fileProcessor\controllers;

this solved the error for me... but the files are not getting uploaded

rdeanar commented 9 years ago

Make sure that your upload directory is writable. Is any records inserted in table fp_uploads?

The issue with FileAPI i will fix soon. At this moment i work on the major release.

skeeran commented 9 years ago

i have made it work allready... going through..

I like the way this module is working.. nice work... Waiting for future releases. Thanks

i changed also in Model 'Upload' from @app/web to @webroot

public function getUploadDir($type){
        return  Yii::getAlias('@webroot/'.$this->upload_dir.'/' . $type);
}
rdeanar commented 9 years ago

Thanks for improvement.