Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<form enctype="multipart/form-data" method="post" action="uploader.php">
<select name="destination">
<option value="gallery_1">Gallery One</option>
<option value="gallery_2">Gallery Two</option>
<option value="gallery_3">Gallery Three</option>
</select><br>
<input name="photos[]" type="file"><br>
<input name="photos[]" type="file"><br>
<input name="photos[]" type="file"><br>
<input name="photos[]" type="file"><br>
<input type="submit">
</form>
<?
$file = $_FILES['photos'];
for($i = 0; $i < sizeof($file); $i++)
{
echo "inside of loop<BR>";
if($file['error'][$i] == 0)
{
$newfile = "C:\\Path\\To\\Destination\\".$_POST['destination']."\\".$_FILES['photos']['name'][$i];
move_uploaded_file($_FILES['photos']['tmp_name'][$i], $newfile);
echo "Moved : ".$newfile."<BR>";
}
else
echo $file['error'][$i]."<BR>";
}
?>