Skip to content

Commit

Permalink
Only check target backend for existing files
Browse files Browse the repository at this point in the history
  • Loading branch information
tipue-dev committed Dec 20, 2023
1 parent 48a4ccb commit a101a66
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,8 @@ sub ArticleWriteAttachment {
my $NewFileName = $Param{Filename};
my %UsedFile;
my %Index = $Self->ArticleAttachmentIndex(
ArticleID => $Param{ArticleID},
ArticleID => $Param{ArticleID},
OnlyMyBackend => 1,
);

for my $IndexFile ( sort keys %Index ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ sub ArticleWriteAttachment {
my $NewFileName = $Param{Filename};
my %UsedFile;
my %Index = $Self->ArticleAttachmentIndex(
ArticleID => $Param{ArticleID},
ArticleID => $Param{ArticleID},
OnlyMyBackend => 1,
);

# Normalize filenames to find file names which are identical but in a different unicode form.
Expand Down

0 comments on commit a101a66

Please sign in to comment.