Rank 5: Hypervisor
Looks like you're still not passing an image key
Votes
0
Replies
24
Participants
Unknown
Messages
25
Rank 5: Hypervisor
Looks like you're still not passing an image key
Would you please switch to the payload tab and share that
Rank 1: Thread
I don’t know why, I think I did?
Rank 1: Thread
Hold on yeah, sorry for the delayed replies, busy with work over the weekend
Rank 1: Thread
here you are
Rank 1: Thread
imageUrl is empty
Rank 1: Thread
but i think my code passes it as an image though
Rank 1: Thread
not sure why it isnt registering
As I said earlier, you can't pass an image...
Anyways, what collection has an image attribute?
Rank 1: Thread
The Posts collection
Would you please share a screenshot of the list of attributes of the posts collection from the Appwrite Console?
Rank 1: Thread
sorry i did not get the notification for this
Rank 1: Thread
my discord has been acting up
Rank 1: Thread
sure
Rank 1: Thread
Rank 1: Thread
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
Rank 1: Thread
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.
Rank 1: Thread
Tried changing this and it still didn’t work, I thought so initially too
Rank 1: Thread
Should I change it in appwrite or code
Rank 5: Hypervisor
You changed imageUrl to image in your databases.createDocument() function, and it still gives an error that image is missing?
Rank 1: Thread
yep, same output
Rank 1: Thread
Rank 1: Thread
Rank 5: Hypervisor
No, that’s a different error
Rank 5: Hypervisor
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.