Commit 5201bd1c authored by Serge S. Koval's avatar Serge S. Koval

Merge pull request #565 from piranha/patch-1

form.upload: folder needs exec permission
parents 1055c1f9 288a6183
......@@ -237,7 +237,7 @@ class FileUploadField(fields.TextField):
def _save_file(self, data, filename):
path = self._get_path(filename)
if not op.exists(op.dirname(path)):
os.makedirs(os.path.dirname(path), self.permission)
os.makedirs(os.path.dirname(path), self.permission | 0o111)
data.save(path)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment