fix import from file
This commit is contained in:
parent
764e0201ce
commit
d0951777c0
@ -16,10 +16,10 @@ function import_post(&$a) {
|
|||||||
$data = null;
|
$data = null;
|
||||||
$seize = ((x($_REQUEST,'make_primary')) ? intval($_REQUEST['make_primary']) : 0);
|
$seize = ((x($_REQUEST,'make_primary')) ? intval($_REQUEST['make_primary']) : 0);
|
||||||
|
|
||||||
$src = $_FILES['userfile']['tmp_name'];
|
$src = $_FILES['filename']['tmp_name'];
|
||||||
$filename = basename($_FILES['userfile']['name']);
|
$filename = basename($_FILES['filename']['name']);
|
||||||
$filesize = intval($_FILES['userfile']['size']);
|
$filesize = intval($_FILES['filename']['size']);
|
||||||
$filetype = $_FILES['userfile']['type'];
|
$filetype = $_FILES['filename']['type'];
|
||||||
|
|
||||||
|
|
||||||
if($src) {
|
if($src) {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<h2>{{$title}}</h2>
|
<h2>{{$title}}</h2>
|
||||||
|
|
||||||
<form action="import" method="post" id="import-channel-form">
|
<form action="import" method="post" enctype="multipart/form-data" id="import-channel-form">
|
||||||
|
|
||||||
<div id="import-desc" class="descriptive-paragraph">{{$desc}}</div>
|
<div id="import-desc" class="descriptive-paragraph">{{$desc}}</div>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user