URL: https://www.overclockers.at/coding-stuff/php_upload_mit_ajax_hilfe_177510/page_1 - zur Vollversion wechseln!
Also, wir haben folgendes Upload Skript:
Code: PHP<form enctype="multipart/form-data" action="test.php" method="post"> <input type="hidden" name="MAX_FILE_SIZE" value="300000"> Send this file: <input name="userfile" type="file"> <input type="submit" value="Send File"> </form>
Code: PHP<pre> <?php if (move_uploaded_file($_FILES['userfile']['tmp_name'], "upload/" . $_FILES['userfile']['name'])) { print "File is valid, and was successfully uploaded. Here's some more debugging info:\n"; print_r($_FILES); } else { print "Possible file upload attack! Here's some debugging info:\n"; print_r($_FILES); } ?> </pre>
overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2026