Problem description
Using curl to upload an FTP file today throws an error
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/ code>
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
div>
Read More:
- Solution to burning problem of esp8266 module based on Arduino_ open failed error: espcomm_ upload_ mem failed
- Solution to “550 create directory operation failed” in FTP operation file
- [Linux] curl: (7) failed to connect to 127.0.0.1 port 1086: connection reused solution
- error: RPC failed; curl 56 OpenSSL SSL_ read: SSL_ ERROR_ Syscall, errno 10054 solution
- RCurl error-fatal error: curl/curl.h: No such file or directory
- FTP 550 Failed to change directory
- Curl returns empty reply from server. Due to the processing of special characters, curl cannot be accessed and the browser can access it.
- Ng Zorro antd file stream upload, access to upload file path
- Ant Design upload listtype = “picture card” realizes multi image upload and click preview image encapsulation
- On curl: (2) failed initialization
- Command line access to passive mode FTP server failed, 425 failed to establish connection
- Linux FTP error 226 transfer done (but failed to open directory)
- Prompt 550 remove directory operation failed when FTP delete folder
- Alibaba cloud builds FTP server 200 port command successful. Consider using PASV. 425 failed to establish connection
- curl: (7) Failed connect to localhost:9200; Connection refused
- curl: (23)failed writing body(0!=3810)
- GitHub desktop upload file error commit failed – exit code 1 received
- curl.perform() pycurl.error: (23, ‘Failed writing body (0 != 59)’)
- error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: CANCEL (err 8)
- [Solved] FTP Error: 553 Could not create file