Im using the B4X FTP Server in my B4A App.
BaseDir is Files.DirInternal.
Connection and directory/file listing is working, but i cannot do more.
Download, Upload, Deleting and Directory change is not possible.
I always get an Invalid path error
e.g from a filedelete in filezilla (in passive mode)
In the Sub HandleClientCommand i get DELE as command and /button-eco-betrieb-ein.png as parameter.
The Function CombineWithCurrent(parameters) returns an empty string with results in this error message.
I followed this function to NormalizePath
Here the CanonicalPath is /data/data/de.dinotec/files/button-eco-betrieb-ein.png and it is compared to the startingstring of BaseDir wich is /data/user/0/de.dinotec/files
So this Comparison fails because of a complete different folder i think
Where does it come from?
BaseDir is Files.DirInternal.
Connection and directory/file listing is working, but i cannot do more.
Download, Upload, Deleting and Directory change is not possible.
I always get an Invalid path error
e.g from a filedelete in filezilla (in passive mode)
Status: Connecting to 192.168.178.25:51041...
Status: Connection established, waiting for welcome message...
Status: Insecure server, it does not support FTP over TLS.
Status: Logged in
Status: Deleting "/button-eco-betrieb-ein.png"
Command: CWD /
Response: 450 Invalid path:
Command: DELE /button-eco-betrieb-ein.png
Response: 500 Invalid path
In the Sub HandleClientCommand i get DELE as command and /button-eco-betrieb-ein.png as parameter.
The Function CombineWithCurrent(parameters) returns an empty string with results in this error message.
I followed this function to NormalizePath
Here the CanonicalPath is /data/data/de.dinotec/files/button-eco-betrieb-ein.png and it is compared to the startingstring of BaseDir wich is /data/user/0/de.dinotec/files
So this Comparison fails because of a complete different folder i think
Where does it come from?
Last edited: