Closed RonByRonn closed 7 months ago
It works correctly for me and I'm not able to reproduce it locally with PocketBase v0.22.4 and PocketBase Dart SDK v0.18.1.
pb.collection("example").create(
files: [
http.MultipartFile.fromString(
'file', // the name of the file field
'example content...',
filename: 'example_document.txt',
),
],
body: {
"title": "test",
},
);
Note that PocketBase Dart SDK v0.18+ is compatible only with PocketBase v0.21+ (see the CHANGELOG).
If you are still not able to resolve it, feel free to provide more details about your testing environment and/or create a minimal reproducible repo and I'll try to investigate it further.
Note that PocketBase Dart SDK v0.18+ is compatible only with PocketBase v0.21+ (see the CHANGELOG).
I had a similar problem. Upgrading the backend fixed it 👍
I setup my Dart project a few weeks after my backend project, which is probably why I didn't check the changelog or consider the versions might be incompatible.
I am trying to create record with data and files (like example in https://pocketbase.io/docs/files-handling/)
here is my code:
but when I run above code, only
files
are successfully uploaded to DB and nobody
data is reflected in DB. if I comment outfiles
like this:then
body
is successfully uploaded to DB.why is this happening and how can I solve this? I can't find any difference between my code and example in https://pocketbase.io/docs/files-handling/
thank you