Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

メールプラグインにおけるファイルフィールドを利用した場合ファイルが保存されない #2816

Closed
1 task
gondoh opened this issue Oct 21, 2023 · 1 comment
Labels
Bug バグ

Comments

@gondoh
Copy link
Collaborator

gondoh commented Oct 21, 2023

概要

DBにファイルデータが保存されていない。
おそらく実ファイルは拡張子なしの状態で保存されている。

baserCMS version :
5.0.5

TODO

    • [ ]

備考

別途記載する内容があれば書きます。

@seto1
Copy link
Collaborator

seto1 commented Dec 13, 2023

■動かすことを優先した仮のコード
seto1@3eece94

  • MailMessagesServiceの変更で、ファイルがアップロードされない問題を修正
  • BcFileUploaderの変更で、メールフォームに複数のファイルフィールドが存在する際に、1ファイルしかアップロードされない問題を修正

■問題

  • 配列の場合にnewEntityを回避しているためバリデーションが実行されない

単に $entity->_bc_upload_id = $validateEntity->_bc_upload_id; でもいいかも

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug バグ
Projects
None yet
Development

No branches or pull requests

2 participants