Next.js Discord

Discord Forum

Is it possible to add custom metadatas to a file with vercel/blob ?

Unanswered
Atlantic menhaden posted this in #help-forum
Open in Discord
Atlantic menhadenOP
Hello, I want to know if it is possible to add custom metadatas to file and then upload the file to vercel/blob and then read the metadata after (I already know that vercel has a function to retrieve metadata to a blob). The doc doesn't mention anything about adding metadatas and I think the head function only return this :

{
size: number;
uploadedAt: Date;
pathname: string;
contentType: string;
contentDisposition: string;
url: string;
downloadUrl: string
cacheControl: string;
}

If not possible what is the best solution to store user's file with user's informations ?

0 Replies