Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TypeError: Cannot read property '_uploadFiles' of undefined in google colaboratory

I am trying to write upload the file in Google Colaboratory and I'm going to write the code as below.

from google.colab import files
uploaded = files.upload()

But I am getting the below error to run the code in browser.

MessageError: TypeError: Cannot read property '_uploadFiles' of undefined

Please help me solve the issue.

like image 554
MalliKarjun Namagiri Avatar asked Jan 01 '18 08:01

MalliKarjun Namagiri


People also ask

How do I upload files to Colab?

Click on “Choose Files” then select and upload the file. Wait for the file to be 100% uploaded. You should see the name of the file once Colab has uploaded it. Finally, type in the following code to import it into a dataframe (make sure the filename matches the name of the uploaded file).


2 Answers

Well, if running on Brave Browser, i can confirm that turning down the shields will do the job.

like image 84
Shiva Govindaswamy Avatar answered Oct 19 '22 05:10

Shiva Govindaswamy


Navigate to chrome://settings/content/cookies and turn off "block third-party cookies". It works for me!

like image 36
Cuong Trinh Avatar answered Oct 19 '22 05:10

Cuong Trinh