title: Save file in /var/www from html upload file
body: <p>I have an issue in a program that uploads files from html in my local server, into the <code>/var/www/html/my_app</code> directory.</p>
  
  <p>In this directory I have changed the permission with:</p>
  
  <p><code>sudo chmod -R 777</code></p>
  
  <p>So I can save the photo that uploads in the directory inside my_app.</p>
  
  <p>But here is the problem, when I upload a file inside the directory it always has the <code>read</code> permission.</p>
  
  <p>Can I change that? So all the files I upload have permission. </p>
  
  <pre><code>chmod 777
  </code></pre>