# Permissions not working for upload module

**URL:** <https://www.ruby-forum.com/t/permissions-not-working-for-upload-module/245748>\
**Category:** NGINX\
**Created:** [July 9, 2013, 1:38pm UTC](https://www.ruby-forum.com/t/permissions-not-working-for-upload-module/245748 "2013-07-09T13:38:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [July 9, 2013, 1:38pm UTC](https://www.ruby-forum.com/t/permissions-not-working-for-upload-module/245748/1 "2013-07-09T13:38:16Z")

</div>

I’ve recently created an RPM for Cent-Os 4 for NGINX 1.2.6 which  
includes  
the `nginx_upload_module version 2.2.0`

When the files get uploaded they don’t have correct permissions.

They have the default user `rw permission`

However included the `upload_store_access` with the correct permissions

See my config.

```
location /upload {
  dav_methods PUT;
  root /opt/glassfish/domains/domain1/logs/uploadStore/;
  upload_store /opt/glassfish/domains/domain1/logs/uploadStore 1;
  upload_store_access all:rw;
  upload_set_form_field $upload_field_name.name $arg_filename;
  upload_set_form_field $upload_field_name.content

```

“$upload\_content\_type”;  
upload\_set\_form\_field $upload\_field\_name.path “$upload\_tmp\_path”;  
allow all;  
}

The files get output to  
`/opt/glassfish/domains/domain1/logs/uploadStore/upload/`

Is this correct? I would expect them to just go to  
`/opt/glassfish/domains/domain1/logs/uploadStore/`

I need to get the output files to be readable by every user.

Posted at Nginx Forum:

> **[Permissions not working for upload module](https://forum.nginx.org/read.php?2,240692,240692#msg-240692)**
>
> I've recently created an RPM for Cent-Os 4 for NGINX 1.2.6 which includes the \`nginx\_upload\_module version 2.2.0\` When the files get uploaded they don't have correct permissions. They have the default user \`rw permission\` However included the...
