Web siteme dosya yüklemek için müşterilerin ihtiyaç ve ben onların adını veya şirket adını toplamak ve böylece biz organize dosyaları tutabilir dosya adı ekleyin ya da isim olarak o ile sunucu üzerinde bir klasör oluşturmak istiyorum. Dosya yüklemek için PHP Kullanımı
PHP: >>
if(isset($_POST['submit'])){
    $target = "upload/";
    $file_name = $_FILES['file']['name'];
    $tmp_dir = $_FILES ['file']['tmp_name'];
    try{
    if(!preg_match('/(jpe?g|psd|ai|eps|zip|rar|tif?f|pdf)$/i', $file_name))
        {
        throw new Exception("Wrong File Type");
        exit;
        }
        move_uploaded_file($tmp_dir, $target . $file_name);
        $status = true;
        }
    catch (Exception $e)
        {
        $fail = true;
        }
}
Diğer PHPW / form: >>
<form enctype="multipart/form-data" action="" method="post">
        input type="hidden" name="MAX_FILE_SIZE" value="1073741824" />
            label for="file">Choose File to Upload </label> <br />input name="file" type="file" id="file" size="50" maxlength="50" /><br />
            input type="submit" name="submit" value="Upload" />
php
    if(isset($status)) {
        $yay = "alert-success";
    echo "<div class=\"$yay\">
    <br/>
    <h2>Thank You!</h2>
    <p>File Upload Successful!</p></div>";
    }
    if(isset($fail)) {
        $boo = "alert-error";
    echo "<div class=\"$boo\">
    <br/>
    <h2>Sorry...</h2>
    <p>There was a problem uploading the file.</p><br/><p>Please make sure that you are trying to upload a file that is less than 50mb and an acceptable file type.</p></div>";
    }