View Single Post

  #5 (permalink)  
Old 12-14-2004
Québec
 
Posts: n/a
Default Re: quick simple upload

With my first trial:
This server dont accept 'post' so I replaced with get
Where do I set it to POST?Php.ini? Config.inc
---------------
in php .ini

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if
not
; specified).
upload_tmp_dir = "secret\EasyPHP1-7\tmp\"

; Maximum allowed size for uploaded files.
upload_max_filesize = 15M

---------------------------
I replaced
<?php



//FULL PATH
$dir = "secret/EasyPHP1-7\www\~uploads\";

if (isset($_FILES['file']) && !$_FILES['file']['error']) {
list($name,,$tmp_name) = array_values($_FILES['file']);
move_uploaded_file($tmp_name, "$dir/$name");
}

?>
<html>
<head>
<title> New Document </title>
</head>

<body>
<form method="get" enctype="multipart/form-data">
<input type="file" name="file" />
<input type="submit" />
</form>
</body>
</html>



http://localhost/mydir/~upload/uploa...%5Caupload.zip

no errors is displayed the page comes back as it was

nothing is uploaded

Jean


Reply With Quote