8000 🐛 Bug Report: storage.createFile() failed · Issue #3911 · appwrite/appwrite · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

🐛 Bug Report: storage.createFile() failed #3911

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
2 tasks done
xypmhxy opened this issue Sep 23, 2022 · 3 comments
Closed
2 tasks done

🐛 Bug Report: storage.createFile() failed #3911

xypmhxy opened this issue Sep 23, 2022 · 3 comments
Assignees
Labels
bug Something isn't working product / storage Fixes and upgrades for the Appwrite Storage.

Comments

@xypmhxy
Copy link
xypmhxy commented Sep 23, 2022

👟 Reproduction steps

final input = await storage.getFileDownload(
      bucketId: 'my bucketId', fileId: imageFileId);

// input has correct data

final storageFile = await storage.createFile(
            bucketId: 'my bucketId'',
            fileId: fileId,
            file: InputFile(bytes: input));

output:

Unhandled exception:
AppwriteException: storage_file_empty, No file sent (400)
#0      ClientMixin.prepareResponse (package:dart_appwrite/src/client_mixin.dart:73:9)
#1      ClientIO.call (package:dart_appwrite/src/client_io.dart:220:14)
<asynchronous suspension>
#2      Storage.createFile (package:dart_appwrite/services/storage.dart:242:17)
<asynchronous suspension>
#3      start.<anonymous closure> (package:appwrite_function/main.dart:51:29)
<asynchronous suspension>

👍 Expected behavior

it work

👎 Actual Behavior

Unhandled exception:
AppwriteException: storage_file_empty, No file sent (400)
#0      ClientMixin.prepareResponse (package:dart_appwrite/src/client_mixin.dart:73:9)
#1      ClientIO.call (package:dart_appwrite/src/client_io.dart:220:14)
<asynchronous suspension>
#2      Storage.createFile (package:dart_appwrite/services/storage.dart:242:17)
<asynchronous suspension>
#3      start.<anonymous closure> (package:appwrite_function/main.dart:51:29)
<asynchronous suspension>

🎲 Appwrite version

Version 0.15.x

💻 Operating system

Linux

🧱 Your Environment

No response

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

@xypmhxy xypmhxy added the bug Something isn't working label Sep 23, 2022
@stnguyen90
Copy link
Contributor

Are you running on mobile? How big is your file? Would you please make sure you're passing a path and filename to InputFile?

@stnguyen90
Copy link
Contributor

@xypmhxy did you get a chance to address my comment? So that you know, I'll need to close this due to inactivity soon.

@stnguyen90 stnguyen90 added the product / storage Fixes and upgrades for the Appwrite Storage. label Jan 6, 2023
@stnguyen90 stnguyen90 self-assigned this Jan 6, 2023
@stnguyen90 stnguyen90 changed the title 🐛 Bug Report: storage. createFile failed 🐛 Bug Report: storage.createFile() failed Jan 6, 2023
@stnguyen90
Copy link
Contributor

Closing due to inactivity.

@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
4822
Labels
bug Something isn't working product / storage Fixes and upgrades for the Appwrite Storage.
Projects
None yet
Development

No branches or pull requests

2 participants
0