Skip to content
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

🐛 Bug Report: Upload Progress not being reported #58

Closed
2 tasks done
mariusbolik opened this issue Jun 14, 2023 · 3 comments
Closed
2 tasks done

🐛 Bug Report: Upload Progress not being reported #58

mariusbolik opened this issue Jun 14, 2023 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mariusbolik
Copy link

mariusbolik commented Jun 14, 2023

👟 Reproduction steps

    try {
      const upload = await storage.createFile('uploads', ID.unique(), file, [Permission.read(Role.any())], (uploadProgress) => {
        console.log('Progress', uploadProgress)
      });

      console.log("Upload completed", upload);
    } catch (error) {
      console.error("Error while uploading file: ", error);
    }
  };

👍 Expected behavior

The console.log in the callback should be updated, so I can report the upload progress to the user.

👎 Actual Behavior

Sadly, the callback isn't emitting any events. The file gets uploaded correctly.

🎲 Appwrite version

Cloud Beta

💻 Operating system

MacOS

🧱 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?

@mariusbolik mariusbolik added the bug Something isn't working label Jun 14, 2023
@joeyouss joeyouss self-assigned this Jun 21, 2023
@stnguyen90
Copy link
Contributor

@mariusbolik thanks for creating this issue! 🙏 How big is the file you're uploading?

@stnguyen90
Copy link
Contributor

@mariusbolik would you please provide some more information. FYI, we'll need to close this due to inactivity soon.

@stnguyen90 stnguyen90 self-assigned this Sep 8, 2023
@stnguyen90
Copy link
Contributor

The progress is only triggered if the file is over 5MB as the progress is updated per 5MB chunk.

@stnguyen90 stnguyen90 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants