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
|
case spec of
|
||||||
NewFile ->
|
NewFile ->
|
||||||
insertMedium medium albumId
|
insertMedium medium albumId
|
||||||
Replace _ ->
|
Replace mId ->
|
||||||
return ()
|
runDB $ update mId
|
||||||
|
[ MediumPath =. ('/' : path)
|
||||||
|
]
|
||||||
return Nothing
|
return Nothing
|
||||||
else do
|
else do
|
||||||
liftIO $ removeFile (FP.normalise path)
|
liftIO $ removeFile (FP.normalise path)
|
||||||
|
|
Loading…
Reference in a new issue