On this page
Quick answer. Open the local folder and the remote folder you mean to change, then drag a file to the other panel or use Copy. Wait until the queue finishes, and compare the size. For a folder sync, open Commands, Synchronize, choose the direction, and read the preview before you let WinSCP delete anything.
What you need
- A working session. If Login never shows a remote directory, use the connection guide first.
- Commander interface if you want both folders on screen. Change it under Options, Preferences, Environment, Interface, then restart if the program asks you to.
- A spare copy of anything you might overwrite. Download that copy before you upload a replacement.
Local and remote directories
The path above the local panel is a Windows path. The path above the remote panel is a path on the server, in that account’s view. They are not the same filesystem. A file can exist on both sides with the same name and different contents. The panel you last clicked is the one keyboard commands apply to, so click the panel you intend to change before you press Delete.
Double-click a folder to open it. The entry .. moves up. If double-click edits a file instead of opening a folder, that is the file action, not the folder action. The preference “Operation to perform on double-click” is on the Panels page and defaults to Edit for files. Folders still open.
Upload files
-
Open the destination on the server
In the remote panel, browse to the directory that should receive the file. If you cannot see the directory, do not upload into the home folder and hope. Ask for the path, or check the hosting panel. Uploading
index.htmlinto the wrong directory is the usual reason a site “did not update.” -
Select the local files
In the local panel, click the file. Use Ctrl+click for several files or Shift+click for a range. Select a folder only when you mean to copy its contents as a tree.
-
Start the copy
Drag the selection into the remote panel, or use the Copy command on the toolbar. WinSCP opens the transfer options. The target directory should be the remote folder you opened. If the dialog shows a different path, cancel and open the right folder.
-
Choose the transfer mode
Automatic is the right starting point. It uses binary for most files and text rules only for extensions configured as text. Choose Binary for images, archives, audio, video, PDFs, and anything you need byte for byte. Choose Text only when you know Windows and the server must use different newline characters in that file. Text mode can corrupt a binary file. It is not a quality setting.
-
Watch the remote panel
When the transfer completes, the file name appears in the remote directory. If you sent it to the background, the queue at the bottom must show it finished. Then refresh the panel if the name is missing. A missing name with a finished queue usually means you are looking at a different folder.
Download files
Reverse the direction. Open the local folder that should receive the copy. Select the remote file. Drag it into the local panel or use Copy. The same transfer options apply. Afterward, check the size in File Explorer against the size WinSCP showed. For a backup, download before you edit, and store that download outside the folder you will upload from, so you do not overwrite your only good copy on the next sync.
Drag and drop
Dragging between the two panels is the direct method in Commander. Dragging from Windows File Explorer into the remote panel also uploads, and dragging out of the remote panel downloads. The drop target is the folder currently open in that panel, not the folder under the pointer if you are hovering a subfolder, unless you deliberately drop onto that subfolder. If the result lands in the wrong place, move it with the remote Move command or delete it and copy again. Check the path before the second attempt.
Transfer queue
The queue lists background transfers at the bottom of the window. Use it when a copy is large and you still want to browse. In the transfer dialog, choose the background option rather than closing WinSCP. Closing the program abandons work that has not finished. You can leave a finished item in the list until you have checked the file, then clear the queue entry. The queue is not a second copy of the file. The file itself is in the folder you targeted.
Resume an interrupted transfer
WinSCP can resume SFTP and FTP transfers when the server supports the required operations. In the transfer settings, the endurance option enables resume and transfer to a temporary filename. Until the copy finishes, the remote name may end in .filepart. That suffix means the file is incomplete. When the transfer completes, WinSCP renames it to the final name.
If the connection drops, reconnect and start the same transfer again with resume enabled. WinSCP can continue from the partial data when the server allows it. If resume is refused, delete the .filepart file only after you confirm it is the incomplete copy, then transfer again. Do not delete a real document that someone named with that suffix until you have checked its size and contents.
SCP and WebDAV do not offer this resume behavior in WinSCP. If a large SCP copy fails, transfer it again, or switch the site to SFTP when the server has SFTP.
Directory synchronization
-
Open the two directories that should be compared
Local panel: the folder on your PC. Remote panel: the matching folder on the server. Synchronize uses those directories. If either one is a parent of the folder you meant, the preview will include far more files than you expect. Cancel and fix the paths.
-
Open Commands, then Synchronize
Choose the direction. Remote updates the server from your PC. Local updates your PC from the server. Both copies newer files in either direction and depends on timestamps, so a wrong clock produces the wrong “newer” file.
-
Leave deletion off until you have read a preview
The checklist shows what would copy and what would be removed. Read it. A delete option removes files that are only on the destination side. That can erase server files that were never on your laptop, including uploads from someone else. Turn deletion on only when that is the result you want, and only after you have a backup.
-
Apply, then verify one changed file
After synchronization, open one file you expected to change and one file you expected to leave alone. Sizes and timestamps should match the preview. If the preview itself looked wrong, do not apply it. Fix the directories or the direction and preview again.
Scripted synchronization is a separate command, synchronize, documented in the automation guide. Do not schedule a sync that deletes files until the same directories have succeeded once in the graphical preview.
File permissions
On an SFTP or SCP session, right-click a remote file or folder and open Properties. The permission checkboxes correspond to owner, group, and others for read, write, and execute. Directories need the execute bit for people who should be allowed to open them. A directory you can list but not enter is often missing execute. A file you can see but not change is missing write for your user or group.
Set the narrowest mode that lets the right account work. Do not apply mode 777 to a directory because an upload failed. That mode lets every account on the server read, write, and enter it. If you are not the owner, the server will refuse the change. That refusal is expected. Ask the administrator to add your account to the right group or to adjust the owner. WinSCP cannot grant rights the server withholds.
You also cannot type sudo into the file panel and become root. The protocols WinSCP uses do not switch user mid-session. Log in as the account that should own the files. Administrators who intentionally run the SFTP server binary under another user must follow the server’s own sudo policy. The WinSCP FAQ on changing user after login shows how limited that is, and a passwordless rule for every command is wider than a file-transfer task needs.
FTP permission behavior depends on server extensions. If Properties does not offer a mode, the FTP server may not support the command. SFTP is the clearer choice when you must manage Unix modes.
Hidden files
Unix hidden names start with a dot, such as .htaccess or .env. Windows hidden files use the hidden attribute. If a name is missing, open Options, Preferences, Panels, and turn on Show hidden files. Apply the preference and look again. Turning this on does not change permissions. You may see files you still cannot open. Be careful with .env and key files. Downloading them to a laptop and leaving them in Downloads is a common leak. Do not upload a replacement .env unless you mean to change the application’s configuration.
When a transfer is slow
SFTP confirms packets, so a folder of thousands of tiny files is slower than one archive of the same bytes. Compress a build directory into one archive, transfer the archive in binary mode, and extract it on the server if you are allowed to. That is often faster than raising a buffer.
WinSCP has an “Optimize connection buffer size” option in the transfer settings. It helps some links and hurts others. If a transfer stalls, turn it off for that site and try one file. If the speed drops on a healthy link, turn it back on. It is not a permanent switch to flip because a single upload felt slow. Antivirus scanning of every new file, Wi-Fi packet loss, and a server quota are more common limits. Text mode on a large binary file wastes time and damages the file. Switch that back to binary first.
Common mistakes
- Uploading into your home directory when the site root is a different path.
- Synchronizing with deletion on the first try.
- Treating a
.filepartfile as the finished document and publishing it. - Setting a directory to 777 instead of adding your user to the group that already has access.
- Editing a hidden configuration file without keeping a copy of the previous version.
Expected result
The destination panel shows the file, the size matches, and a .filepart name is gone. A synchronization preview matches what you intended before you press the button that applies it.
FAQ
Which function key copies a file?
The Copy command on the toolbar and drag-and-drop are the reliable methods to teach. Keyboard shortcuts follow the Commander style and can be changed, so look at the command label in your window if a key does something else.
Can I rename a file on the server?
Yes. Select it in the remote panel and use the rename command, or right-click and choose the rename item. Renaming is not an upload. The content stays where it is, under a new name, when the server allows the operation.
Why did the timestamp change?
FTP servers without modern listing commands, and SCP sessions that depend on ls, can shift timestamps across time zones and daylight-saving rules. SFTP is less exposed to that because the protocol uses UTC, though some servers still get daylight-saving wrong. If a sync keeps copying the same file, compare the timestamps in Properties before you enable deletion.
Previous: Server connectionNext: Settings