Back

Awesome talk about verbs. A few of us got talking. How do you handle events with file uploads? Is there a built in way in verbs?

Nothing built in. I would just store the file and then reference the file path in the events

1

315

In response to @coulb

Thanks for replying!
The thing that got us talking was if a user deleted (changed avatar picture for instance), then the event would likely fail due to the old image missing?

1

198

  • No matching results...
  • Searching...

/ 1000

I don’t really think file storage is something that your events should cause. Otherwise you’d have to store binary blobs in your events to truly have the events be the source of truth.
I would store the file first, the. Fire an event referencing the file’s location.

68