550 Invalid file name or path

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
omhe
500 Command not understood
Posts: 2
Joined: 2023-10-17 12:54
First name: Martin
Last name: Hedengran

550 Invalid file name or path

#1 Post by omhe » 2023-10-17 13:02

Hello

I have been trying to set up a ftp server to transfer bmp and txt files from Cognex cameras.
I keep getting the error: 550 Invalid file name or path whenever i try to save a file.
I have tried to change the folder location and folder names around but nothing seems to fix the issue.

Any idea what my mistake is?
Attachments
filezillasetting.PNG
filezillasetting.PNG (12.42 KiB) Viewed 8370 times
Filezillaprompt.PNG
Filezillaprompt.PNG (31.22 KiB) Viewed 8370 times

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: 550 Invalid file name or path

#2 Post by botg » 2023-10-17 13:41

If the server runs on Windows, colons and backslashes are not allowed in filenames.

omhe
500 Command not understood
Posts: 2
Joined: 2023-10-17 12:54
First name: Martin
Last name: Hedengran

Re: 550 Invalid file name or path

#3 Post by omhe » 2023-10-18 07:29

It does indeed run on Windows but i am unsure how to fix this then.

When i try to alter the Native path to instead have forward slash, it complains that the path must be absolute.

User avatar
botg
Site Admin
Posts: 35566
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: 550 Invalid file name or path

#4 Post by botg » 2023-10-18 07:40

Look at the STOR command in the log. It's the client that wants to store a file with backslashes in its name.

Rename the file on the client to no longer contain backslashes, e.g. replace them with underscores.

msdijf0
500 Command not understood
Posts: 3
Joined: 2023-10-25 10:10

Re: 550 Invalid file name or path

#5 Post by msdijf0 » 2023-10-25 10:40

Hi. We have the same problem. We don't want to store the file with slashes in the name, we want to store the file in the subdirectory identified by those slashes. I believe this used to work in version 0.9 ... at least i believe we're using it that way in several applications still with the older software. The FTP client does not have the ability to issue a CD or CDW command as its not a programmable device, however we can build the filename string however we want. Is there a workaround to include the desired server-side subdirectory path in the filename? FWIW, we use both the STOR and APPE commands for sending or appending files to/on the server. Thanks, -ijf

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: 550 Invalid file name or path

#6 Post by boco » 2023-10-25 14:03

Backslashes \ are not valid as path separators. The client needs to send slashes / as path separators. The old server could afford to ignore and silently correct this wrong syntax, as it was Windows-only. But the new server also runs on POSIX file systems, where each and every character except 0x00 and the slash / is a valid character for filenames.

So,

1. The client must send filenames in the valid TVFS syntax, using slashes as path separators.
2. In the last image, you might want to set the Virtual path to be /VISION_COMAX instead of /, as the client tries to replicate it. Would eliminate duplicate directories.
Is there a workaround to include the desired server-side subdirectory path in the filename?
Yes, but only the virtual one, using / as path separators. The physical structure is never exposed to the client.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

msdijf0
500 Command not understood
Posts: 3
Joined: 2023-10-25 10:10

Re: 550 Invalid file name or path

#7 Post by msdijf0 » 2023-10-25 14:10

IT WORKS!!
Oh man. I feel like i tried every iteration ... not sure how i didnt just try reversing the direction of the slashes. Phew!

Thank you.

Edit: I am not OP, but def. appreciate the help. Hopefully works for OP too (looks like we might be using the exact same client device).

User avatar
boco
Contributor
Posts: 26940
Joined: 2006-05-01 03:28
Location: Germany

Re: 550 Invalid file name or path

#8 Post by boco » 2023-10-25 15:19

Blame Microsoft for their decision to use the exotic backslash as path separator. Plus the whole concept of drive lettering. Every Windows user now thinks it is the status quo.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

msdijf0
500 Command not understood
Posts: 3
Joined: 2023-10-25 10:10

Re: 550 Invalid file name or path

#9 Post by msdijf0 » 2023-10-25 15:41

I dont have anymore room on my list of things i blame on Microsoft.
But anyway, I appreciate the time you took to set me straight.

Molgan
500 Command not understood
Posts: 1
Joined: 2024-02-01 13:38
First name: Pär
Last name: Lindén

Re: 550 Invalid file name or path

#10 Post by Molgan » 2024-02-01 13:45

Many thanks for the solution that was presented here above. :D I was going completely crazy :shock: because I couldn't figure out how to access my folders on my windows server. Whatever I tried, it didn't work. But now it works. It's a bit sad that this information is not in the FileZilla manual.

Post Reply