Open deontologician opened 10 years ago
I think some_binary.mime()
should only be for getting the mime type, not for setting it.
For setting a mime type, we could add an opt arg {mime: ...}
to the r.binary()
constructor.
Putting into subsequent. Let's discuss this more in the next ReQL discussion period.
When grabbing a file with
r.http
:We could save the mime-type in the binary pseudotype document:
This wouldn't try to do any autodetection, just store what we were told by the remote server. We could also add mime term for getting and setting the mime-type manually, like:
Basically, I ran into this trying to use binaries in earnest today. I ended up needing to always store the mime-type alongside. It'd be nice to have rethinkDB handle that automatically.