
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
- Best way to return html from cloud funct...
Right now I am return text ``` return response.text(JoinTeamHtml.successResponse(code), 200, {'Content-Type': 'text/html; charset=utf-8'}); ``` my c...
- About the Image Transformations
Hey I wanted to ask what is the quota for Image Transformations on getFilePreview endpoint for github student plan. As far as I know, it's similar to Basic Pro ...
- Random timeouts after last incident
I am getting lots of timeouts since yesterday's incident, speaking in terms of multiple 100s just today. Also, very frequently, request are taking lots of time ...
