Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
397 views
in Technique[技术] by (71.8m points)

mysql - I am using webmin server. and issue is facing file uploading problem in php

My code working good in xampp server but I move all directory to webmin then all functions working good but only file not uploading.

<form method="post" action="" enctype="multipart/form-data">
<div class="form-group">
         <input type="file" name="fileupload" class="form-control" id="fileupload">
</div>
<input type="submit" name="datasubmit" value="Save" class="btn btn-dark">
</form>
 if(isset($_POST['datasubmit']))
 {
$fileTmpPath = $_FILES['fileupload']['tmp_name'];
$uploadFileDir = '/uploads/';
$path = $uploadFileDir . basename($_FILES['fileupload']['name']);
 $upload = move_uploaded_file($_FILES['fileupload']['tmp_name'], $path);
 if($upload == true)
 {


 header('Location:upcoming-refreshers.php');
 }

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...