I've been trying to create document and upload a file. In both cases, this error is shown.
I don't really know what to put here since the error is shown in 'storage.ts'.
Here is my submitHandler function.
`const submitHandler = async (data) => { data.preventDefault(); try { const file = await service.uploadFile(image);
if(file) {
const fileId = file.$id
const document = await service.createDocument({slug},
postName,
content,
fileId,
status,
userData.$id
);
if(document) {
navigate(`/post/${document.$id}`)
}
}`
I didn't bother to search how to write code here. Sorry for that.
Recommended threads
- Problem with Google Workspace at DNS Rec...
Hello, I bought a domain at Namecheap, and Google Workspace used to work there, but now that I switched from Custom DNS to Appwrite's nameservers, it doesn't w...
- change role of a team member in Appwrite
It's not possible to add/change roles of a team meber in Appwrite Frontend. When you click on a member of a team you get forwarded to the configuration page of ...
- Session not found. Please run appwrite l...
I have encounter an issue with appwrite CLI They asking for a login session but in the doc, it’s mention that only setup client with endpoint / api key is enou...