<?php
// at this point you have established the user file names etc...
// you want to establish the hashed name, and zip for storage;
// $zip_file_name = md5($usergiven_name);
// next you want to zip the file once you have that upload your file for storage, remember md5 is one encoding;
// zip code goes here;
//now you are ready to upload the file using the variable $zip_file_name on the archived copy for them to share.
$target_path = "uploads/";
/* Add the original filename to our target path.
Result is "uploads/filename.extension" */
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
$_FILES['uploadedfile']['tmp_name'];
$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
echo "The file ". basename( $_FILES['uploadedfile']['name']).
" has been uploaded.";
} else{
echo "There was an error uploading the file, please try again!";
}
?>