RamanOriginal post
Moderator
Error uploading document: AppwriteException: document_invalid_structure, Invalid document structure: Unknown attribute: "id" (400)
The file is successfully uploaded but throwing the above error
Summary
Developers are experiencing an error when uploading a file, receiving the message "Error uploading document: AppwriteException: document_invalid_structure, Invalid document structure: Unknown attribute: 'id' (400)." The error is related to a prefixed internal `id`. The code snippet provided appears to be correct. The issue seems isolated to the API, as uploading via the console works fine. The SDK version is requested.
Potential Solution:
- Check and ensure the `id` attribute is being handled correctly.
- Verify the SDK version being used.
- Attempt to reproduce the issue within the console.
- Share a snippet of how the file is being uploaded