File validation

Validate the incoming files, much like it's done with the DTOs.

Remember that, when dealing with an entity's creation for example, first we care about validating the incoming data, and then about the actual logic? Here, it will be very similar. First, we'll ensure that the file is properly validated. After that, we'll implement the logic related to it. So, let's get to work.

Last updated