
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
- cors error
my website is working and logged me in and sign also in the local host , but when i deployed it and then used it in the login and signup, it shows failed to fet...
- Unable to access certain projects after ...
As attached, after upgrading to pro and relogin to the appwrite console, for certain projects I am met with the 401 error although I am the owner of the organiz...
- I can't access my project
Hi all, I’m on the free tier and have only one organization and one project set up. I built this project a few months ago, but now when I try to access it, I’m ...
