cryptpad / cryptpad

Collaborative office suite, end-to-end encrypted and open-source.
https://cryptpad.org
GNU Affero General Public License v3.0
5.68k stars 657 forks source link

Uploading text file failure #864

Closed applecargo closed 2 years ago

applecargo commented 2 years ago

Describe the bug Uploading text/plain files doesn't work.

Where did it happen? https://pad.dianaband.info my own Yunohost instance

To Reproduce Steps to reproduce the behavior:

  1. Go to CryptDrive
  2. Click on '+new'
  3. Select a text file 'dot_emacs' (a LISP code, without extension)
  4. No popup & No response
  5. Open Inspector & See error

Expected behavior Upload works.

Screenshots at Firefox Screen Shot 2022-02-10 at 4 51 18 AM at Google Chrome Screen Shot 2022-02-10 at 4 51 46 AM

Browser (please complete the following information):

[firefox]

Auto Tab Discard Blank New Tab BlockTube Copy as Markdown Dark New Tab Dark Reader Don't track me Google DownThemAll! KeePassXC-Browser OneTab Tab Center Reborn uBlacklist uBlock Origin Video DownloadHelper [Disabled] Dark Mode [Disabled] Tree Style Tab

[google chrome]

Dark New Tab Dark Reader Dark Reader Dark Empty New Tab Page Google Docs Offline OneTab Session Buddy Stop Autoplay for Youtube tachyons-x-ray uBlock Origin Video DownloadHelper (Chrome Apps) Docs Sheets Slides Web Server for Chrome

[firefox] Enhanced Tracking Protection -> Strict

Additional context

I am using version 4.11.0. I have installed it through Yunohost -> https://github.com/YunoHost-Apps/cryptpad_ynh When I injected a console.log(content), I get an ArrayBuffer not a Blob (of File). So, I was able to quick-fix it by myself Screen Shot 2022-02-10 at 5 08 57 AM Maybe I could make a PR but I am not using the same code as you have here. So I leave here a comment. Plus, I don't know why it was not a Blob at first place !

ghost commented 2 years ago

Hello,

I cannot reproduce this on v5.0 & sadly we cannot support CryptPad distributions. I invite you to take this issue to https://github.com/YunoHost-Apps/cryptpad_ynh. I'll be closing this issue now. :)