# Colab 無法上傳檔案出現錯誤訊息 ###### tags: `FM623A` `Python` `Colab` Colab 的 `files.upload()` 可能會因為瀏覽器的設定而無法上傳檔案, 以下我們分別針對 Google Chrome 以及 Firefox 分別說明。 ## Google Chrome 如果你因為安全考量而在 Google Chrome 中設定封鎖第三方 cookies, 例如:  在 Colab 中就會無法使用 files.upload() 上傳檔案, 執行時會看到這樣的錯誤畫面:  解決方法很簡單, 就是允許第三方 cookies。 ## Firefox 如果你是使用 Firefox, 可以改用 Colab 本身的檔案總管上傳:  只要按一下左邊邊欄上的**檔案📁**鈕顯示**檔案**窗格, 就可以從你自己電腦上的檔案總管拖放檔案到該窗格中上傳檔案了。
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up