Buttons to upload files to ftp server

My commands in files and folders context menu to upload files to ftp server to share with other people. Maybe someone will make use of this.

Copy TO="@folder\site\www\_upload" WHENEXISTS=skip Clipboard COPYNAMES=nopaths REGEXP (.*) http://address/_upload/\1
It will send all selected files to the FTP server in folder/site on your ftps list and after all files are sent, it will copy addresses to clipboard. Note that if a file already exists on ftp, it will skip and that url will not be copied to clipboard (I don't know why but it works).
It is also possible to copy whole folders. However for copied url to work, you have to properly configure your server (it has to display list of files in a dir).

[code]@firstfileonly
@nofilenamequoting
cd "{sourcepath} "
@set name={dlgstringS|New file name|{sourcepath$|nopath|noterm} {date|yy-MM-dd} {time|HH.mm}}.zip
"/programfiles\winrar\winrar.exe" a "{$name}" @{allfile$|filem}
Select "{$name}" DESELECTNOMATCH

Copy TO="@folder\site\www_upload" WHENEXISTS=skip
Clipboard COPYNAMES=nopaths REGEXP (.*) http://address/_upload/\1[/code]

This works similar, but asks for file name for new zip file, archives all selected files and then send compressed file. Then copies its name to clipboard.

I shared my commands and then realized they don't always work. :blush:

I'm using
Copy TO="@folder\site\www_upload" WHENEXISTS=skip
to upload folder "test" with two folders "1" and "2".
FTP log sometimes says (after logging in)

200 UTF8 set to on 200 Type set to A 257 "/" is the current directory 257 "/www/_upload" is the current directory 257 "/www/_upload/test" - Directory successfully created 257 "/www/_upload/test" is the current directory 200 PORT command successful 150 Opening ASCII mode data connection for file list 119 bytes received in 0.27 seconds (3.928 Kbytes/sec) 226 Transfer complete 257 "/www/_upload/test/1" - Directory successfully created

And sometimes:

200 UTF8 set to on 200 Type set to A 257 "/" is the current directory 550 /www/_upload/2/www/_upload: No such file or directory 550 /www/_upload/2/www/_upload: No such file or directory Connection closed

I guess this is because DOpus remembers current dir in FTP address book and then uses it when I click the button. Is there a way to explicitly define ftp folder to copy to?

I just tried several times and sometimes it's successful and sometimes fails.

Didn't find answer to unambiguously define folder to upload files via COPY TO command.
My workaround is to disable "keep last directory" for that ftp site.

this my works fine for 1 file

Copy TO=ftp://USER:PASS@ftp.blabla.de//html/dennis/blabla
Clipboard SET blabla.de/{file$}

Do you have "keep last directory" enabled for this website? Did you try to upload several files one after another?