This commit is contained in:
nek0 2017-03-09 22:56:37 +01:00
parent 02d7b4f4fc
commit d06b204fb0

View file

@ -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)