Using the following script, I upload gifs on my ftp server. The scripts seems to work, but when I tried to access the image in my browser they are broken. Any idea why ?
#!/bin/sh
HOST='myftp'
USER='mylogin'
ftp -n $HOST <<END_SCRIPT
quote USER $USER
quote PASS $1
put $2
quit
END_SCRIPT
exit 0