I've got my own webserver running ftp and I'm wondering how best to upload to it via the command line. I had tried curl but I get this problem...
%curl -T test.png -u user
ass -O
ftp://obelix.ca/public_html/xgrid
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
curl: (25) Failed FTP upload: Can't open that file: Is a directory
I run ls and see that yes in fact test.png is there and it is NOT a directory. All I want to do is upload a png file to my ftp server but curl keeps doing funny things. Is there a better way to do this?
I tried the ftp command but I like being able to do everything all in one command and not have to go into prompts for entering things.