(Ecto.FileTemplate) Save file to cache backend when cast, make uploading explicit
keichan34 opened this issue · 1 comments
keichan34 commented
See #30
Because uploading should occur after validations, etc, occur, it shouldn't be uploaded as part of the cast step.
Ecto doesn't have callbacks, so a upload
function will have to be called after ecto save succeeded.
keichan34 commented
This is a pretty major bug because it means that images will be uploaded to the backend even if the Ecto struct fails to save due to some other validation or database error.