don't show a notice about updating an existing file if we didn't do that (new-upload vs new-over-existing-upload)

This commit is contained in:
Gered 2013-05-26 15:08:38 -04:00
parent 879229e4dd
commit 8ef71ea31b

View file

@ -35,7 +35,7 @@
(files/add-file path filename tempfile content-type))]
(do
(session/flash-put! :file-success (str "<strong>" (:id savedfile) "</strong> was uploaded successfully."))
(session/flash-put! :file-notice "Existing file with the same name was updated with the uploaded file."))
(if exists? (session/flash-put! :file-notice "Existing file with the same name was updated with the uploaded file.")))
(session/flash-put! :file-error "File could not be uploaded.")))
(session/flash-put! :file-error "No file selected to upload."))
(resp/redirect (str "/listfiles" path)))