
Error uploading document: AppwriteException: document_invalid_structure, Invalid document structure: Unknown attribute: "id" (400)
The file is successfully uploaded but throwing the above error

cc: @Darshan Pandya

how are you uploading the file, maybe share a snippet as well?

is this reproducible via console as well?

Okay

final file = await _storage.createFile(
bucketId: _bucketId,
fileId: ID.unique(),
file: InputFile.fromBytes(
bytes: fileData,
filename: name,
contentType: 'application/octet-stream',
),
// permissions: [
// Permission.read(Role.any()),
// Permission.write(Role.any()),
// ],
);

code looks OK, what sdk version?

upload on console works fine so its not the API bug on Cloud.

are you making any database calls too? maybe somewhere else in parallel?

the internal id
s are always prefixed with $
.
Recommended threads
- Dumb question, api key for app? Protect ...
I have my project set up, and I'm developing with Flutter. My app does not require users to log in to retrieve some general project data, but authentication is ...
- Account Deletion is not working
Hey There, i am trying to trigger a function with a swift ui button. The function ist to delete the currently active user with the userID, so that the account i...
- OAuth2 Giving 404
I am trying to implement oauth2 with Google, but it keeps giving this weird 404 error.
