You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I save Message model with nested Attachment model via accepts_nested_attributes_for and everything works on 1.3.1
When I migrate to 2.0.1 in general everything work, except one moment:
First time server return tmp path instead of absolute file path to AWS.
When I try to check attachment url via rails console or reload the page it works, but right after first upload uploader start return tmp file with 2.0.1 version
The text was updated successfully, but these errors were encountered:
I suppose this is because of #2209, which defers the timing of storing attachments to after_commit phase.
Version 3.0 comes with #2546 that restores the timing to after_save. Or if you need to stay on 2.x, you need to hook into after_commit to obtain a stored URL, not cached one.
I save
Message
model with nestedAttachment
model viaaccepts_nested_attributes_for
and everything works on 1.3.1When I migrate to 2.0.1 in general everything work, except one moment:
First time server return tmp path instead of absolute file path to AWS.
When I try to check attachment url via rails console or reload the page it works, but right after first upload
uploader
start return tmp file with 2.0.1 versionThe text was updated successfully, but these errors were encountered: