I have looked at a lot of examples of this and have adopted the same approach and it works I can get a file uploaded to the server. I have checked that it uploads all the time. However the HTML application that contains this code…
<form name=’form’ action=”inc/uploadPlotData01.php” enctype=”multipart/form-data” method=”POST” >
<label class=’label’>Enter/Select File for Uploading:</label><br />
<input type=”hidden” name=”MAX_FILE_SIZE” value=”100000″ />
<input id=”file” class=’box’ type=”file” name=”file” value=”” size=”40″ title=’locate the file for uploading and plotting on map’/>
<input class=’butt’ type=”submit” value=”Upload” />
</form>
… transfers the control to the PHP application (uploadPlotData01.php) into another window instance and never returns. The user can of course use the ‘back’ button but that’s simply not on.
The server-side PHP code is as follows:
<?php
$uploaddir = ‘uploads/’;
$uploadfile = $uploaddir . basename($_FILES[‘file’][‘name’]);
move_uploaded_file($
?>
This can be tested at…
[url]http://demo.cubewerx.com.au/NuMaps/test.html
There must be something I am missing here. Does anyone have a clue?
Cheers…