Seaweedfs merge/write received buffer data to file

244 views Asked by At

I would like to ask question about Seaweedfs functionality.

In my case, I have a browser where is audio recorder. Audio chunk files are transferred to NodeJS backend using socket. When chunk is at backend I have to save it in storage and merge together. Does Seaweedfs supports functionality where buffer data is received and merged in storage?

Or maybe there is a better solution how I can store audio chunks in live recording and merge them together getting full audio file at the end.

1

There are 1 answers

9
chrislusf On

I added a filer REST API to append to a file. You can wait for the weekly release next Sunday.

Does that work for you?

    //create or append the file
    POST /path/to/file?op=append
    PUT /path/to/file?op=append