It opens the root folder, are you sure you have write permissions there? Perhaps you need to
ftp_chdir to a different folder first.
Are you able to help answer this sponsored question?
Questions asked by members who have earned a lot of community kudos are featured in order to give back and encourage quality replies.