tradechat/php/fileUploader.php

13 lines
224 B
PHP
Raw Normal View History

2017-08-14 12:09:53 -06:00
<?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");
}
?>