# FTP file creation

**URL:** <https://forum.legato.io/t/ftp-file-creation/3469>\
**Category:** Uncategorized\
**Created:** [July 22, 2018, 1:41pm UTC](https://forum.legato.io/t/ftp-file-creation/3469 "2018-07-22T13:41:43Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [September 30, 2022, 2:40pm UTC](https://forum.legato.io/t/ftp-file-creation/3469/22 "2022-09-30T14:40:02Z")

</div>

you can use ./busybox-armv5l\_1.26 ftpput

Or you can see here for ftp upload by C program

> **[Connection to sftp or ftp](https://forum.mangoh.io/t/connection-to-sftp-or-ftp/1034/5)**
>
> hi do you find any example for ftp data upload if so pls share the code

Or you can try curl

> **[FTP file upload using cURL | ADMFactory](https://www.admfactory.com/ftp-file-upload-using-curl/)**
>
> How to upload files to FTP using cURL command line. The command is very simple: curl -T backup-file.tar.gz ftp://username:password@ftp.server.com/backup/

---

<div class="post-metadata">

**Author:** ![bilawal.latif](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@bilawal.latif](https://forum.legato.io/u/bilawal.latif)\
**Post date:** [October 10, 2022, 9:48am UTC](https://forum.legato.io/t/ftp-file-creation/3469/23 "2022-10-10T09:48:15Z")

</div>

Hi @jyijyi  
Using **/busybox-armv5l\_1.26** for **ftp** can I use **ssl/tls** in that?  
Thanks

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [October 10, 2022, 10:04am UTC](https://forum.legato.io/t/ftp-file-creation/3469/24 "2022-10-10T10:04:17Z")

</div>

did you try curl with FTPS?

> <https://unix.stackexchange.com/questions/650926/connect-with-curl-to-ftps-server-and-download-file>

---

<div class="post-metadata">

**Author:** ![bilawal.latif](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@bilawal.latif](https://forum.legato.io/u/bilawal.latif)\
**Post date:** [October 10, 2022, 10:09am UTC](https://forum.legato.io/t/ftp-file-creation/3469/25 "2022-10-10T10:09:26Z")

</div>

Yes, I tried doing it with curl it won’t works fine for me.  
**curl -u username:paswd ‘ftp://url’ -o test\_file.update**  
on execution of this command, it didn’t download the file.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [October 10, 2022, 10:21am UTC](https://forum.legato.io/t/ftp-file-creation/3469/26 "2022-10-10T10:21:40Z")

</div>

other user can make it work by curl:

> [@FTP file creation](https://forum.legato.io/t/ftp-file-creation/3469/4):
>
> Hi, regarding ftp, I connected to the server through connect call, after that i send command ftp through send call . I got return value 220. then in order to login i used strcpy(msgbuf, “USER”) , strcat username to the command and then sent . I used snprintf function also. but again i got return value 220. through terminal I am able to connect to the server through commands curl ftp://ftpsit.com --user username:password. I could not understand what is problem in the code. and please tell…

You can also see here on using curl to download ftp file:

> <https://superuser.com/questions/265062/downloading-file-from-ftp-using-curl>

[Previous page](https://forum.legato.io/t/ftp-file-creation/3469.md?page=1)
