Skip to content

Commit

Permalink
Dataset folder permissions (#189, #165)
Browse files Browse the repository at this point in the history
  • Loading branch information
trinath503 authored and jsbroks committed Apr 16, 2019
1 parent 8dd4ed5 commit e5488ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/database/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def save(self, *args, **kwargs):

if not os.path.exists(directory):
os.makedirs(directory)
#changing permission of folder to upload images with out sudo permissions (anyone can upload images)
os.chmod(directory,0o777)

self.directory = directory

Expand Down

0 comments on commit e5488ca

Please # to comment.