
Looks like you're still not passing an image
key

Would you please switch to the payload tab and share that

I don’t know why, I think I did?

Hold on yeah, sorry for the delayed replies, busy with work over the weekend

here you are

imageUrl is empty

but i think my code passes it as an image though

not sure why it isnt registering

As I said earlier, you can't pass an image...
Anyways, what collection has an image
attribute?

The Posts collection

Would you please share a screenshot of the list of attributes of the posts collection from the Appwrite Console?

sorry i did not get the notification for this

my discord has been acting up

sure


I can see you have set a attribute with a name 'image' and type as URL. But you have tried to pass this attribute in code as imageUrl

Here you're passing imageUrl key of your data. You can change that to image. Btw The value of fileUrl is a object. It should be a string I guess.

Tried changing this and it still didn’t work, I thought so initially too

Should I change it in appwrite or code

You changed imageUrl
to image
in your databases.createDocument()
function, and it still gives an error that image
is missing?

yep, same output



No, that’s a different error

Before it was complaining Invalid document structure: Missing required attribute: “image”
. Now the error is Attribute “image” has invalid format: Value must be a valid URL
.
Recommended threads
- Functions Failing Due to Installed Depen...
Hi team! Before anything, I am on the so far while we're in the planning phase of the app, and will be upgrading to pro soon. If there's a possibility that this...
- The new Bulk API and Realtime updates
It seems that the new Bulk API doesn't actually send realtime updates which is making a huge problem for me. I also wanted to know different is it deleting mul...
- 413 Entity Too Large bucket file upload ...
Any file 2mb+, only been successful with uploading XXX KB sized files. Otherwise request returns 413. With a bucket max file size of 50mb
