FTP file upload with non-ascii characters in filename
Matthias Rebbe
matthias_livecode_150811 at m-r-d.de
Tue Feb 28 03:23:51 EST 2017
Hi,
i need to upload files with non-ascii characters in the filename and this has to work on Win and Mac OS X.
My script works fine when uploading files with ascii filenames, but as soon as i select a file with non-ascii characters in its filename i get an error
What do i have to do with the filenames/filepath (target and source) before doing the upload?
My script looks like this:
answer tFile "select file..."
if it is empty then exit to top
put it into tFilePath
replace backslash with slash in tFilePath
set the itemdelimiter to slash
put item -1 of tFilePath into tFile
replace " " with "_" in tFile
put "ftp://username:password@ftpserver.com/ <ftp://username:password@ftpserver.com/>"& tFile into tURL
liburlftpupload tFilePath,tURL
I´ve tried to urlencode tDatei.
I am pretty sure there is something more.
Regards,
Matthias
More information about the use-livecode
mailing list