title: File upload in Symfony and Windows user permission
body: <p>I have an intranet website built using Symfony 3, hosted on IIS (Windows Server 2012) and users authenticate against an LDAP server to access the service.</p>
  
  <p>I implemented file upload using <a href="http://symfony.com/doc/current/controller/upload_file.html" rel="nofollow noreferrer">http://symfony.com/doc/current/controller/upload_file.html</a> as reference.
  I have an upload directory as defined in my config.yml, which is <strong>web/uploads/files</strong>. I gave read/write/execute permission to that directory for <strong>Domain Users</strong> (all users are in this group). However, each time a user uploads a new file, the right permissions are not set so my user is not able to view the file. When I set the permission manually on the newly uploaded file, my user can view it.</p>
  
  <p>Is there a way to programatically set group (from LDAP) rights on uploaded files or a way to configure windows folder permissions to avoid fixing each time the issue manually ?</p>
  
  <p>Thank you for your answer.</p>