|
@@ -28,7 +28,7 @@ module.exports = function(crowi) {
|
|
|
|
|
|
|
|
lib.deleteFile = async function(attachment) {
|
|
lib.deleteFile = async function(attachment) {
|
|
|
let filenameValue = attachment.fileName;
|
|
let filenameValue = attachment.fileName;
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
if (attachment.filePath != null) { // backward compatibility for v3.3.x or below
|
|
if (attachment.filePath != null) { // backward compatibility for v3.3.x or below
|
|
|
filenameValue = attachment.filePath;
|
|
filenameValue = attachment.filePath;
|
|
|
}
|
|
}
|