|
|
$res = Upload::image('file',$pid.'/'.date('Ymd'));
|
|
$res = Upload::image('file',$pid.'/'.date('Ymd'));
|
|
|
$res->dir = str_replace('public/','',$res->dir);
|
|
$res->dir = str_replace('public/','',$res->dir);
|
|
|
SystemAttachmentModel::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,'',$pid);
|
|
SystemAttachmentModel::attachmentAdd($res->fileInfo->getSaveName(),$fileInfo['size'],$fileInfo['type'],$res->dir,'',$pid);
|