nextcloud / desktop

đź’» Desktop sync client for Nextcloud
https://nextcloud.com/install/#install-clients
GNU General Public License v2.0
3.04k stars 799 forks source link

Avoid "Failed to open stream: File name too long" by checking filename size locally before upload #5678

Open solracsf opened 1 year ago

solracsf commented 1 year ago

How to use GitHub

Feature description

Please check for file name size BEFORE trying to upload it, indefinitely, to the server. So, if file name is >= 250, trow a warning locally and don't try to upload that file.

Error: file_put_contents(/var/www/data/julia/files/Recherche Nextcloud/CEPED_Ikambere/Thèse/Méthodologie recherche Igikali/Réf méthodologie/Approche réaliste/Heidible, 2022. Evaluation of the routine implementation of pulse oximeters into integrated management of childhood illness (IMCI) guidelines at primary health care level in West Africa. the AIRE mixed methods research protocol.pdf.ocTransferId114544620.part): Failed to open stream: File name too long at /var/www/nextcloud/lib/private/Files/Storage/Local.php#300`

KiaraMaker commented 1 year ago

I agree but I can't understand why not supporting >=250 characters filenames?

szaimen commented 1 year ago

I agree but I can't understand why not supporting >=250 characters filenames?

Common filesystem limitations