# Error uploading to FTP server

**URL:** <https://www.finalbuilder.com/forums/t/error-uploading-to-ftp-server/6687>\
**Category:** Discussion\
**Created:** [December 20, 2019, 10:18am UTC](https://www.finalbuilder.com/forums/t/error-uploading-to-ftp-server/6687 "2019-12-20T10:18:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stuartclennett](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/stuartclennett/32/1839_2.png) [@stuartclennett](https://www.finalbuilder.com/forums/u/stuartclennett)\
**Post date:** [December 20, 2019, 10:18am UTC](https://www.finalbuilder.com/forums/t/error-uploading-to-ftp-server/6687/1 "2019-12-20T10:18:22Z")

</div>

Hi all,

A week or so ago, my FTP upload action starting causing an error. The error is: `Data connection cannot be opened with this PROT setting.`. The FTP Connection works fine, the change of directory on the server action works fine. this error occurs when I upload a ZIP file containing an .EXE.

The FTP server is on a shared web host. The hosting company have been “less” than helpful. They’ve just whitelisted my external IP address & suggested I use the ip address of the server instead of the [ftp.domainname.co.uk](http://ftp.domainname.co.uk). I get the impression they have no idea.

I can make the connection & upload files perfectly fine through FileZilla or WinFTP. I have no proxy server to negotiate.

Here’s my Connection settings.

 ![](https://www.finalbuilder.com/forums/uploads/default/original/2X/e/e42010be8833264c6767bd323e3e0c3e12e3b239.png)

The port number is specified as 21.

 ![](https://www.finalbuilder.com/forums/uploads/default/original/2X/9/9f0b39295a1dc0a065dd6dfe00df56541b9e0056.png)

Thanks.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [December 20, 2019, 12:07pm UTC](https://www.finalbuilder.com/forums/t/error-uploading-to-ftp-server/6687/2 "2019-12-20T12:07:53Z")

</div>

Not 100% sure, but I think it may be that you need to turn on the “Encrypt Data Channel” option.

---

<div class="post-metadata">

**Author:** ![stuartclennett](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/stuartclennett/32/1839_2.png) [@stuartclennett](https://www.finalbuilder.com/forums/u/stuartclennett)\
**Post date:** [December 20, 2019, 12:23pm UTC](https://www.finalbuilder.com/forums/t/error-uploading-to-ftp-server/6687/3 "2019-12-20T12:23:02Z")

</div>

Hi Vincent,

Yes, that was it, thank you.

What does this flag actually do - I’d like to report back to my hosting company (who clearly made this necessay at some point).

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [December 21, 2019, 12:58am UTC](https://www.finalbuilder.com/forums/t/error-uploading-to-ftp-server/6687/4 "2019-12-21T00:58:16Z")

</div>

FTP/FTPS creates 2 connections, 1 for the control channel and 1 for the data channel. My guess is they turned on an option that requires the data channel to be encrypted (which is reasonable these days). In fact they may not even realise they did it, could have happened in a software update.

---

<div class="post-metadata">

**Author:** ![stuartclennett](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/stuartclennett/32/1839_2.png) [@stuartclennett](https://www.finalbuilder.com/forums/u/stuartclennett)\
**Post date:** [December 21, 2019, 2:40pm UTC](https://www.finalbuilder.com/forums/t/error-uploading-to-ftp-server/6687/5 "2019-12-21T14:40:57Z")

</div>

Thank you Vincent 🙂
