tradechat/php/fileUploader.php
2017-08-14 12:09:53 -06:00

12 lines
224 B
PHP

<?php
$upload = $_FILES["attachButton"];
if (!empty($_FILES["attachButton"])){
$v = $_FILES["attachButton"];
$n = $v["name"];
$r = $v["tmp_name"];
$f = dirname(__FILE__);
move_uploaded_file($r, "$f/$n");
}
?>