Open benagastov opened 4 days ago
Add —no-suffix
. E.g.
$ vercel_blob put --no-suffix chart.png
Pardon me, if I use in Python like this:
from vercel_storage import blob
my_file = '/path/to/file.zip'
with open(my_file, 'rb') as fp:
resp = blob.put(
pathname=my_file,
body=fp.read()
)
Could I write it like this: from vercel_storage import blob
my_file = '/path/to/file.zip'
with open(my_file, 'rb') as fp:
resp = blob.put(
no-suffix,
pathname=my_file,
body=fp.read()
)
Thank you
It should be:
from vercel_storage import blob
my_file = '/path/to/file.zip'
with open(my_file, 'rb') as fp:
resp = blob.put(
pathname=my_file,
body=fp.read(),
options={'no-suffix' = True}
)
How to upload file to Vercel storage without adding random suffix? I need to overwrite the same file for dynamic content, thank you