bossbuwi / existence

The world is waiting.
2 stars 0 forks source link

Fix missing link on file uploads #97

Closed bossbuwi closed 1 year ago

bossbuwi commented 2 years ago

File upload (#95 ) has been finished but the succeeding processes that will use the file have no idea of the filename of the recently uploaded file, making the upload essentially useless.

A possible fix would be to properly return a custom DTO after a file upload that contains the filename of the recently uploaded file. The frontend could then hold on to the name and use it on subsequent requests. This of course has a drawback of being vulnerable to page crashes and restart due to the filename being saved on the browser's memory. This could do with some optimizations but that is a thing for another day.

bossbuwi commented 1 year ago

Fixed by #115