FTP connection doesn't works

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
lechuga
Newbie
Posts: 3
Joined: Mon May 15, 2017 12:02 pm

FTP connection doesn't works

Post by lechuga » Fri Aug 11, 2017 8:47 am

Hello,

I've got this line to upload local photos to a web server via FTP. And it works in a server, but now trying in a different one it doesn't work... and yes the server data, user, password... is ok.

Code: Select all

FTPPutFile>servername,user,pwd,21,\\folder1\folder2\folder3\*.jpg,\images\temp\,,I
I get this error message: 550-\images\temp\: No such file or director
I can upload pictures manually to this directory but not with macroscheduler.

I don't really know what I should do.
Somebody has any thoughts on this?

thanks!

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: FTP connection doesn't works

Post by Marcus Tettmar » Fri Aug 11, 2017 11:31 am

It's unlikely to be \images\temp as that implies images is at the root level. Perhaps you mean images\temp. But really it's impossible to say without seeing it for myself.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

NickD
Pro Scripter
Posts: 58
Joined: Fri Sep 23, 2016 2:17 pm

Re: FTP connection doesn't works

Post by NickD » Tue Aug 29, 2017 10:24 am

FTPPutFile definitely works lechuga, I have used it very recently. I think the problem with your code is that you are using backslashes on the server filepath, try forward slashes.

Code: Select all


  Let>ftpserver=ftp.domain.tld
  Let>[email protected]
  Let>ftppassword=yourpassword
  Let>ftpport=21
  Let>ftpuploadfolder=/images/
  Let>filetoupload=C:\Users\User\Desktop\folder1\folder2\folder3\*.jpg

  FTPPutFile>%ftpserver%,%ftpuser%,%ftppassword%,%ftpport%,%filetoupload%,%ftpuploadfolder%,,A

  

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts