It was the first time after using UEStudio about 14 years and UltraEdit more than 20 years that I created a project linked with an FTP account/server. My main job is C/C++ programming and for that reason this was never done by me before.
I could not really believe what I encountered on doing that and making some tests. I doubt that all versions of UltraEdit and UEStudio ever released in the past supported projects linked to an FTP server in the manner as observed by me using currently latest UEStudio v19.10.0.46 and UltraEdit for Windows v26.20.0.6. I have sent two issue reports to IDM support by email and I am looking forward to the replies.
I created first a directory
C:\Temp\ExampleFTP and next a subdirectory with general name
subfolder.
Then I created a file
test.html in directory
C:\Temp\ExampleFTP with content:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test File Root</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>Test file in root folder of server.</p>
</body>
</html>
I created further one more
test.html in directory
C:\Temp\ExampleFTP\subfolder with content:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test File Subfolder</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<p>Test file in subfolder of server.</p>
</body>
</html>
Next I created project
ExampleFTP with
C:\Temp\ExampleFTP as project directory resulting in UEStudio creating in this directory the additional files
ExampleFTP.prj and
ExampleFTP.pui according to my configuration. In checked in
Project Settings on tab
Settings in group
Folder options the option
Include subdirectories and entered
*.html as
Filter. Then I switched to tab
Files/folders in still opened in
Project Settings, clicked on
Add folder, used button
Browse to select the project folder
C:\Temp\ExampleFTP, clicked on button
OK and clicked on button
Close to close the
Project Settings dialog.
So I could see now on tab
Project of
Workspace manager, which is
File View in UltraEdit, the project
ExampleFTP with the folder
.\ containing the file
test.html and the folder
subfolder with the file
test.html.
I created an FTP account for an FTP server of my internet provider which I rarely use and tested with
Open from FTP if account configuration was done correct by me. Next I right clicked on
.\ on tab
Project of
Workspace manager and clicked on context menu item
FTP settings. I checked
Link folder to FTP location, selected the just created FTP account and specified
/ as
Remote path before clicking on button
OK. So the project folder is linked now with the root directory on the FTP server.
My first action was right clicking on
.\ on tab
Project of
Workspace manager and clicking on context menu item
Upload to server. I could see on tab
FTP Transfers in
Output Window that four files were uploaded successfully to the server. Four files? There are only two *.html files.
I opened
Advanced - Settings or Configuration - FTP, enabled
Show FTP log in output window, closed
Configuration with
OK and executed same upload to server as before. I could see to my surprise on tab
FTP Log in
Output Window that also the files
ExampleFTP.prj and
ExampleFTP.pui were uploaded by UEStudio. I expected only the project files according to applied filter are uploaded and not all files in that directory. I don't know if uploading all files in a project directory and not just the project files as displayed on tab
Project is an issue or is by design. It could be by design as it could be useful for web authors for example for images, videos, etc. also stored in project directory, but of course not included in list of project files as such files cannot be edited in UEStudio or UltraEdit. So I wrote an issue report and sent it by email to IDM support for clarification.
I created in
C:\Temp\ExampleFTP a directory
server, moved the file
test.html and the directory
subfolder with its file
test.html into directory
server, opened
Project Settings, removed folder
.\, added folder
.\server\ with FTP settings as before for
.\, closed project settings and used again
Upload to server from context menu of project folder
.\server\. This time only the two HTML files were uploaded successfully. Fine.
I connected with Total Commander to the FTP server (it's always good to use another application for verification) and looked on the files and directories before deleting the directory
subfolder with its file
test.html and the file
test.html in root of FTP server and of course the two files
ExampleFTP.prj and
ExampleFTP.pui which I wanted never to upload to server.
I right clicked on file
test.html in project directory
.\server\ and clicked on
Upload to server. But to my next surprise this action failed according to
FTP Transfer. I could see in
FTP Log that FTP command
STOR was executed without a file name. So the server returned error code 500. Same problem with
Upload with sync.
I right clicked next on file
test.html in project directory
subfolder and clicked on
Upload to server. But this file upload failed also because of FTP command
STOR was executed again without a file name. So the server returned error code 500. Same problem with
Upload with sync. I could see additionally in
FTP Log that UEStudio tried to upload the file to root directory of FTP server.
I right clicked next on project directory
subfolder and clicked on
Upload to server. This time the file upload was successful. But instead of creating the directory
subfolder on FTP server and uploading file
test.html into this directory on server, the file was uploaded into root directory of the FTP server. That was definitely not what I expected here.
I connected to the FTP server, deleted wrong uploaded
test.html in root directory of server and created the directory
subfolder. Then I tried
Upload to server on project directory
subfolder once again, but unfortunately with same unexpected result of uploading
test.html into root directory of the FTP server.
The same wrong behavior could be observed by me on having context menu option
Automatically upload saved files enabled. The file upload failed on saving a modification of an HTML file opened from local disk.
After additional tests with
Upload with sync and with using UltraEdit for Windows v26.20.0.6 with same results as with UEStudio v19.10.0.46 my conclusion is:
Upload to server and
Upload with sync work only for the project directories on which the FTP setting was configured including a recursive upload of all files in all subdirectories. But it is not possible to use these commands on files or subdirectories in FTP linked project directory.
All these issues with file upload not working at all and the wrong uploads of files in a subdirectory of an FTP linked project directory into root directory on FTP server were reported by me with a second issue report. These issues are definitely bugs in my point of view and surely not by design.
My recommendation on using a project with having a folder added with recursive including all directories and all files matching a filter is using only
Upload to server and
Upload with sync on really FTP linked project directory.
I hope that the IDM developers quickly fix the issues.
I suppose that most web authors using UltraEdit and UEStudio open files from
Explorer tab via
FTP Accounts and do not use projects at all although I would never work this way. They have perhaps configured for each FTP account just a local backup directory. Or the issues observed by me as described above exist only in latest version(s) of UEStudio and UltraEdit and the file uploads worked in older versions. I really don't know that.