Skip to content

Commit

Permalink
Fix broken image path when uploading poster image
Browse files Browse the repository at this point in the history
Fixes zorchenhimer#134.

User submitted images are not being saved with the "posters/" prefix
when uploaded, but the unknown placeholder is.
  • Loading branch information
riddlew committed Oct 27, 2022
1 parent 8f1f812 commit 9f20899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion logic/movies.go
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ func (b *backend) doFormfill(validatedForm map[string]*InputField, user *models.
b.l.Debug("Upload failed: %v", err)
return -1, err
}
movie.Poster = path
movie.Poster = "posters/" + path
} else {
movie.Poster = "posters/unknown.jpg"
}
Expand Down

0 comments on commit 9f20899

Please sign in to comment.