fix
This commit is contained in:
parent
02d7b4f4fc
commit
d06b204fb0
1 changed files with 4 additions and 2 deletions
|
@ -211,8 +211,10 @@ handleUpload len albumId prefix time owner desc tags licence spec (index, file)
|
|||
case spec of
|
||||
NewFile ->
|
||||
insertMedium medium albumId
|
||||
Replace _ ->
|
||||
return ()
|
||||
Replace mId ->
|
||||
runDB $ update mId
|
||||
[ MediumPath =. ('/' : path)
|
||||
]
|
||||
return Nothing
|
||||
else do
|
||||
liftIO $ removeFile (FP.normalise path)
|
||||
|
|
Loading…
Reference in a new issue