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
I'm trying to use the onlyIf conditional for putting an object into a bucket using R2 Bindings. However, I'm seeing the reverse of operations than expected.
I'm trying to use the
onlyIfconditional for putting an object into a bucket using R2 Bindings. However, I'm seeing the reverse of operations than expected.I would expect that if I:
This will only return an object if there already exists content at the specified key.
Whereas:
Will only save if there is no content at the specified key.
Using Miniflare, my tests show these are reversed, here's a gist for both cases.