curl: (25) Failed FTP upload: 550 Solution

Problem description
Using curl to upload an FTP file today throws an error

sam@sam-hp-z238:~$ curl -T /home/sam/myinstall ftp://192.168.2.48/camera
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (25) Failed FTP upload: 550

 
The solution
Is important! The FTP address must end with /
For example: curl - T/home/Sam/myinstall ftp://192.168.2.48/camera/
Perfect test solution!

sam@sam-hp-z238:~$ curl -T /home/sam/myinstall ftp://192.168.2.48/camera/
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  1612    0     0  100  1612      0  76761 --:--:-- --:--:-- --:--:-- 76761

 

Read More: