Skip to content

Commit

Permalink
Issue #3602: Removed FormIDAddFile return check from PictureUpload.
Browse files Browse the repository at this point in the history
Let CKEditor take care of file upload.
  • Loading branch information
stefanhaerter authored and svenoe committed Jul 18, 2024
1 parent d904f5e commit dc4f4ce
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Kernel/Modules/PictureUpload.pm
Original file line number Diff line number Diff line change
Expand Up @@ -209,14 +209,13 @@ sub Run {
}

# add uploaded file to upload cache
my $Success = $UploadCacheObject->FormIDAddFile(
$UploadCacheObject->FormIDAddFile(
FormID => $FormID,
Filename => $FilenameTmp,
Content => $File{Content},
ContentType => $File{ContentType} . '; name="' . $FilenameTmp . '"',
Disposition => 'inline',
);
return unless $Success;

# get new content id
my $ContentIDNew = '';
Expand Down

0 comments on commit dc4f4ce

Please sign in to comment.