What types of files can I upload using the WinSCP shell?

Advertisement

mzimmer
Joined:
Posts:
2

What types of files can I upload using the WinSCP shell?

Hello,
TL;DR: How can I upload a file that has periods in the filename?

I have a file I'm trying to upload to the sftp site using the WinSCP shell. And its not working.
The shell crashes without any error message and the file does not upload.

The filename has the period character to separate the month,day,year in a date.
The filename looks like this: groceries 6.22.2021.xlsx

When I replace the periods with forward slashes, the file uploads successfully.
The successful filename looks like this: groceries 6/22/2021.xlsx

Does WinSCP support uploading files with periods? How can I upload this file as it needs to be in the period format for downstream reasons.

Thanks!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: What types of files can I upload using the WinSCP shell?

Of course that WinSCP does support uploading files with periods in their names. After all, almost all files do have periods in their names.

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

mzimmer
Joined:
Posts:
2

Hi Martin,

Thanks for your response. I was able to fix the problem by changing the code which generates the filename from formatting the date as "mm.dd.yyyy" to "m.d.yyyy", and it worked.

Best

Reply with quote

Advertisement

You can post new topics in this forum