M
M
mrpotapov892017-01-19 14:17:14
Yii
mrpotapov89, 2017-01-19 14:17:14

How to create a new folder when uploading a file in Yii2?

How to create a new folder when uploading a file in Yii2 ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2017-01-19
@mrpotapov89

yii2 has a FileHelper:
www.yiiframework.com/doc-2.0/yii-helpers-filehelpe...
it in turn has a createDirectory() method
FileHelper::createDirectory($fullPath);

E
Elsevar Rizayev, 2017-01-19
@EllPro

mkdir
php.net/manual/en/function.mkdir.php

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question