title: upload file then zip and put it for download
body: <p>I want let user upload their resume on the server,these file can be every suffix,then i will zip these file and put them for other users to download  by a link,is it safe enough???!!!
  here is my code</p>
  
  <pre><code>$nameFile = $_FILES['file']['name'];
  $tmpName = $_FILES['file']['tmp_name'];
  $download_folder = "/download/";
  $zip = new ZipArchive;
  $fileconpress = $download_folder.$nameFile.".zip";
  
  $conpress = $zip-&gt;open($fileconpress, ZIPARCHIVE::CREATE);
  if ($conpress === true)
  {
      $zip-&gt;addFile($tmpName);
      $zip-&gt;close();
      echo $fileconpress."&lt;br/&gt;";exit();
  //return $name;
  }
  else echo " Oh No! Error";
  </code></pre>
  
  <p>and above code apparently does not work,please help me to have safe app,thanks</p>