Discuss

Setting up FTP Connection

On this page

Wappler includes advanced FTP manager, which supports FTP, SFTP and FTPS. It allows you to easily connect to your FTP server and publish your files there. NOTE: If you are working locally, on a local server, you don't need to setup an FTP connection, just select "local folder" in the target options!

First, click the project settings button, located at the bottom of Wappler screen:

Screenshot_1|690x372

Select Targets:

Screenshot_2|690x372

And click the Add New Target button:

Screenshot_3|690x372

Give your target a name. This name will be displayed in the targets menu later:

Screenshot_4|690x372

Then enter the URL of your website. This is the address which the users use to access your site in their browsers:

Screenshot_7|690x372

Select the access type. There are several options there - FTP, FTPS and SFTP, so select the option you need. If you don't know which option do you need, please ask your hosting provider - usually they know:

Screenshot_8|690x372

Once you select the option you need (in our case this is FTP) you need to fill the address, port, remote directory and FTP user details. This information is provided to you by your hosting provider.

Start with the ftp address (provided by your hosting provider):

Screenshot_9|690x372

If you are using a different port, than the default one (21), please enter it in the Port field, otherwise just leave it empty.

Then, if your FTP details require you enter a remote directory, or if you are working in a subfolder then enter it here. Some FTP accounts are configured to point you to the remote directory automatically, others require you to enter (httpddocs or public_html etc.) - your hosting provider knows what you need to enter here:

Screenshot_10|690x372

Then enter your FTP user details (provided by your hosting provider):

Screenshot_11|690x372

When you are done entering the FTP details, click the Test Connection button:

Screenshot_12|690x372

In case of a problem, you will see an error message:

Screenshot_13|690x372

If the error message says "Can not find the uploaded files. Probably wrong path..." then that means that either your entered site URL is wrong, or the remote directory is wrong, so make sure to check the details provided by your hosting provider.

If your details are properly entered you will see a success message:

Screenshot_15|690x372

This means that the connection with your server has been successfully created and you can select this target and upload/publish your files there.

Click the Save button to save your target:

Screenshot_16|690x372

The last thing you need to do in order to start publishing to this target is to "activate" it. Open the Targets menu at the bottom of the screen, then select it:

Screenshot_17|690x372

Once activated - you are working on this target. All the files that are saved will be uploaded there, all the database connections you set up will use this target to connect to the database and all the files you choose to upload will be uploaded there:

Screenshot_18|690x372

NOTE: it is important to understand the difference between an FTP connection and a Database connection. The FTP connection connects you to your server, allowing you to upload your files there. In order to create a Database connection in Server Connect, you need to have the FTP connection set up and your target selected in the targets menu.