Skip to content

fix #4112 アップロード管理でファイルアップ時のローディングが終わらない#4113

Merged
ryuring merged 1 commit intobaserproject:5.1.xfrom
seto1:fix-4112
Jan 23, 2025
Merged

fix #4112 アップロード管理でファイルアップ時のローディングが終わらない#4113
ryuring merged 1 commit intobaserproject:5.1.xfrom
seto1:fix-4112

Conversation

@seto1
Copy link
Collaborator

@seto1 seto1 commented Jan 20, 2025

issue: #4112

UploaderFilesService->createにてアップしたファイルにエラーがあると、以下の行で例外がスローされていました。

$postData['name'] = new UploadedFile($file->getStream(), $file->getSize(), $file->getError(), $name, $file->getClientMediaType());

https://github.com/baserproject/basercms/blob/5.1.x/plugins/bc-uploader/src/Service/UploaderFilesService.php#L201

そのため、その直前にエラーチェックを追加しています。

またJavaScriptのbcUtilのエラーを表示する関数でerrorsが空で渡ってくるとエラーになっていたためこちらも合わせて修正しました。

ご確認お願いします。

@ryuring
Copy link
Collaborator

ryuring commented Jan 23, 2025

@seto1 ありがとうございます、マージしますね

@ryuring ryuring merged commit fbf6278 into baserproject:5.1.x Jan 23, 2025
1 check passed
@momofff momofff added this to the 5.1.5 milestone Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

アップロード管理でファイルアップ時のローディングが終わらない

3 participants