How to upload file to storage with custom metadata?

Hi there, I am uploading files using a file picker on my next.js with typescript website. My upload code is as below:
supabase.storage.from('blobid').upload(path, fileInput);

this works as expected but i would like to know if there is a way to add metadata to the file itself?
I'm looking to add things like status(Valid/Expired)
ValidUntil(yyyy/mm/dd)

Can this be done or is there another recommended way of joining a file from storage to a different table with all my required columns?
Was this page helpful?