Page 1 of 1

fileZilla server more 260 chars error, win 10 LongPathEnabled=1

Posted: 2020-11-04 23:07
by vg2k
Win 10
LongPathEnabled = 1 (gpedit and regedit) check via win cmd
FileZilla Server with long client path more 260 chars
got error on upload (create sub folder )
ftp client see it like custom client errors like "Filename invalid" "Internal error creating the directory." and etc

Re: fileZilla server more 260 chars error, win 10 LongPathEnabled=1

Posted: 2020-11-12 22:22
by vg2k
I FOUND ONLY ONE SOLUTION (WIN 10 works fine)

steps:

1. enable win long path (not for all soft)
1.1 Win+R -> gpedit.msc
1.2 Local Computer Policy -> Computer Configuration -> Administrative Templates -> System -> Filesystem -> NTFS (or one folder up)
1.3 set Enable NTFS long paths = 1

2. change Filezilla server target folder in config (texteditor) to UNC path
2.1 Setup the account in the UI. Point the directory to “c:temp” or similar.
2.2 Open up the “FileZilla Server.xml” located in the Filezilla install directory.
2.3 Find the corresponding user node “<User Name=”{username}”>
2.4 Under “<Permissions>” you will have an entry for each folder setup. Change the <Permission Dir=”C:temp”> to <Permission Dir=”\\?\C:temp”>
2.5 full reboot Filezilla server (windows)

Re: fileZilla server more 260 chars error, win 10 LongPathEnabled=1

Posted: 2020-11-12 23:24
by boco
Beware! The \\?\X:\path\file syntax accesses the filesystem directly. I's possible to create some files or directories with names that would be invalid otherwise (CON, NUL, AUX, LPT1, COM1 etc.). Such files cannot be deleted by Explorer, but only by the same syntax used before.