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

await error #1

Open
arunkumartdr opened this issue Dec 18, 2021 · 2 comments
Open

await error #1

arunkumartdr opened this issue Dec 18, 2021 · 2 comments

Comments

@arunkumartdr
Copy link

data = await ufile.upload_file(file='/content/BigBuckBunny.mp4')
^
SyntaxError: 'await' outside function

@gautamajay52
Copy link
Owner

Hi!
This is an asynchronous code.You can't call them directly.

I should not have explained in readme like that, I will change. 🥲

@arunkumartdr
Copy link
Author

Hi!
This is an asynchronous code.You can't call them directly.

I should not have explained in readme like that, I will change. 🥲

Please do also give a correct snippet please...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants