Using Vue/Electron to post to rails/Postgres backend.
Is there a common design pattern/approach to posting multiple audio file objects BUT in a single post request?
My current process (which works, but is very slow) is to convert each audio file's binary data to text, append it to my JSON and then send it all to the server at once and then reverse the process on the other side.
The data has a parent audio file that has N number of related child audio files and each audio file has associated data collected from the user. It would not be unusual to have 20 files to send at one time.
My goal was to limit the number of API calls and the risk that some files might post successfully but others would not, and then Id end up with an incomplete transaction.
Any ideas from experienced engineers on how they might approach this problem would be appreciated.