Create folder /uploads/lotw/certs if it doesnt exist.
这个提交包含在:
父节点
b128f50cb2
当前提交
6814c38ed4
共有 1 个文件被更改,包括 12 次插入 和 0 次删除
|
|
@ -50,6 +50,12 @@ class Lotw extends CI_Controller {
|
||||||
$this->load->view('interface_assets/footer');
|
$this->load->view('interface_assets/footer');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test1() {
|
||||||
|
if (!file_exists('./uploads/lotw/certs')) {
|
||||||
|
mkdir('./uploads/lotw/certs', 0777, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|--------------------------------------------------------------------------
|
|--------------------------------------------------------------------------
|
||||||
| Function: cert_upload
|
| Function: cert_upload
|
||||||
|
|
@ -79,6 +85,12 @@ class Lotw extends CI_Controller {
|
||||||
*/
|
*/
|
||||||
public function do_cert_upload()
|
public function do_cert_upload()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
// create folder to store certs while processing
|
||||||
|
if (!file_exists('./uploads/lotw/certs')) {
|
||||||
|
mkdir('./uploads/lotw/certs', 0755, true);
|
||||||
|
}
|
||||||
|
|
||||||
$config['upload_path'] = './uploads/lotw/certs';
|
$config['upload_path'] = './uploads/lotw/certs';
|
||||||
$config['allowed_types'] = 'p12';
|
$config['allowed_types'] = 'p12';
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用