【发布时间】:2014-08-09 18:29:39
【问题描述】:
我有这个,
$destinationPath = public_path(). '/img/'. $username;
我以为可以创建目录,但它想出了一个
Symfony \ Component \ HttpFoundation \ File \ Exception \ FileException
Unable to create the "/img/alvarito" directory
知道有什么问题吗?在我看来,它还试图创建已经存在的 /img/,我自然想要的是在“img”目录中为每个用户在上传文件时创建子目录。
非常感谢
一个
【问题讨论】:
标签: laravel