Open the-lookin opened 8 years ago
After select file or image appears an alert "true" and nothing else. Dirrectory upload is available. access_log shows the next:
192.168.22.102 - - [21/Sep/2016:17:44:46 +0500] "GET /basic/web/uploads?_=1474461799528 HTTP/1.1" 301 264 "http://192.168.22.113/basic/web/status/update?id=3" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" 192.168.22.102 - - [21/Sep/2016:17:44:46 +0500] "GET /basic/web/uploads/?_=1474461799528 HTTP/1.1" 200 520 "http://192.168.22.113/basic/web/status/update?id=3" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" 192.168.22.102 - - [21/Sep/2016:17:44:49 +0500] "POST /basic/web/uploads HTTP/1.1" 301 248 "http://192.168.22.113/basic/web/status/update?id=3" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" 192.168.22.102 - - [21/Sep/2016:17:44:49 +0500] "GET /basic/web/uploads/ HTTP/1.1" 200 520 "http://192.168.22.113/basic/web/status/update?id=3" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
I think problem in Error 301.
My view code:
<?= $form->field($model, 'message')->widget(\yii\redactor\widgets\Redactor::className(),[ 'clientOptions' => [ 'imageManagerJson' => ['/uploads'], 'imageUpload' => ['/uploads'], 'fileUpload' => ['/uploads'], 'lang' => 'en', 'plugins' => ['clips', 'fontcolor','imagemanager'] ]]); ?>
My config code:
'redactor' => [ 'class' => 'yii\redactor\RedactorModule', 'uploadDir' => '@webroot/uploads/', 'uploadUrl' => '/basic/uploads/', ],
same issue and already opened fileinfo in php.ini
After select file or image appears an alert "true" and nothing else. Dirrectory upload is available. access_log shows the next:
192.168.22.102 - - [21/Sep/2016:17:44:46 +0500] "GET /basic/web/uploads?_=1474461799528 HTTP/1.1" 301 264 "http://192.168.22.113/basic/web/status/update?id=3" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" 192.168.22.102 - - [21/Sep/2016:17:44:46 +0500] "GET /basic/web/uploads/?_=1474461799528 HTTP/1.1" 200 520 "http://192.168.22.113/basic/web/status/update?id=3" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" 192.168.22.102 - - [21/Sep/2016:17:44:49 +0500] "POST /basic/web/uploads HTTP/1.1" 301 248 "http://192.168.22.113/basic/web/status/update?id=3" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36" 192.168.22.102 - - [21/Sep/2016:17:44:49 +0500] "GET /basic/web/uploads/ HTTP/1.1" 200 520 "http://192.168.22.113/basic/web/status/update?id=3" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36"
I think problem in Error 301.
My view code:
My config code: