Francismiko
Francismiko2y ago

What is the method to get storageId

I want to get { storageId } through an api and return it to the front end for use, any recommendations?
3 Replies
ian
ian2y ago
When you use the “storage.store” method from an action, it returns you the storageId If you’re using the generateUploadUrl method, then the response body from uploading the object will be json with the storageId in it
ian
ian2y ago
This should give you some pointers and code samples: https://docs.convex.dev/file-storage
File Storage | Convex Developer Hub
Store and serve files of any type.
Francismiko
FrancismikoOP2y ago
Very useful, thank you for your help @ian

Did you find this page helpful?