CollActionteam / collaction_cms

This is the UI interface for the CMS API
6 stars 3 forks source link

Create a bloc to handle the logic of the Images form section #26

Open dromerolovo opened 1 year ago

dromerolovo commented 1 year ago

The files should be uploaded to the bloc as Uint8List. flutter_dropzone and file_pickerprovide a callback / and method to read the file as bytes. This is important because when the POST multipart request is executed the images are going to be sent as bytes? (I think that is the best method but I'm no 100% sure) http.MultipartFile.fromBytes

The event is going to be emitted everytime a file is uploaded