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
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
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.
Very useful, thank you for your help @ian