Create image folder with right permission

This commit is contained in:
Jannis Mattheis 2018-03-31 18:23:07 +02:00 committed by Jannis Mattheis
parent e141553e3e
commit 662b4dd867
1 changed files with 1 additions and 1 deletions

2
app.go
View File

@ -35,7 +35,7 @@ func main() {
rand.Seed(time.Now().UnixNano())
conf := config.Get()
if err := os.MkdirAll(conf.UploadedImagesDir, os.ModeDir); err != nil {
if err := os.MkdirAll(conf.UploadedImagesDir, 0777); err != nil {
panic(err)
}