title: FTP Error;550 Filename invalid
body: <p>I have been trying simple FTP command in BASH script to put files to FTP server. </p>
  
  <pre><code>USERNAME="User_name_here";
  PASSWORD="pass_word_here";
  SERVER="ftp_url";
  
  
  cd /tmp
  
  zip -r dash.zip dash
  FILE="/tmp"
  echo "file zipped";
  
  BACKUPDIR="copy_dir"
  
  # login to remote server
  ftp -n -v $SERVER &lt;&lt;EOF
  ascii
  user $USERNAME $PASSWORD
  cd $BACKUPDIR
  mput $FILE/dash.zip
  quit
  EOF
  echo "done";
  </code></pre>
  
  <p>After executing I am receiving error 
  550 FileName invalid
  Please suggest.. </p>