FSN#29180 FTP was al open en folder was al gezet
svn path=/Website/branches/v5.4.1/; revision=21138
This commit is contained in:
@@ -15,10 +15,6 @@ function sendFTP(p_connect, p_file, p_data, p_path)
|
||||
{
|
||||
try
|
||||
{
|
||||
// Log2File(1, "Geef de subdirectory vanaf de ftproot mee in de URL of eindig de URL niet met een slash om de standaard directory te gebruiken.");
|
||||
var subdir = p_connect.Subfolder;
|
||||
p_connect.connection.Open();
|
||||
p_connect.connection.SetCurrentDir(subdir);
|
||||
if (p_path)
|
||||
{
|
||||
objFso = new ActiveXObject("Scripting.FileSystemObject");
|
||||
@@ -31,7 +27,6 @@ function sendFTP(p_connect, p_file, p_data, p_path)
|
||||
Log2File(1, "Transfer file: " + p_file + " (size: " + p_data.length + ")");
|
||||
p_connect.connection.PutFileFromTextData(p_file, p_data); // Alleen een tekst-string schrijven.
|
||||
}
|
||||
p_connect.connection.Close();
|
||||
FTPsend = true;
|
||||
}
|
||||
catch(e)
|
||||
|
||||
Reference in New Issue
Block a user