8000 【RFC】add metadata to FileBox · Issue #3 · huan/file-box · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
【RFC】add metadata to FileBox #3
Closed
@windmemory

Description

@windmemory

Hi @zixia ,

I am working on sending voice message to other people in wechaty, and I realized that the voice length has to be passed when we send out voice message. And this information is pretty hard to be retrieved from the data, so I think it makes sense to add a metadata field in FileBox so for voice message that I received, I can persist the voice length in the metadata, then when use the FileBox voice file to send message, I can retrieve it from the FileBox object itself.

Currently I observed that there is a mimeType field in FileBox, and it is used only for url related FileBox object, I can possibly save the voice length inside that, or put it into the file name, but that is all work around, not elegant solutions. So I think the metadata field will be the final solution to my problem.

Please let me know your thought.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0