You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
some_binary.mime()some_binary.mime('image/png')
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.
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.
Activity
danielmewes commentedon Oct 15, 2014
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 ther.binary()constructor.Putting into subsequent. Let's discuss this more in the next ReQL discussion period.