Corrupted file when uploading via ftp

Website URL

https://spamdforum.infy.uk/[email protected]

This is the old version of my script, which was modified multiple time recently.

Also, yesterday when I cd htdocs/account and mput *, the content of the file register.php was replaced by other file.

are you using the file manager in the client area? or an external file client like Filezilla? The internal one is known to be buggy.

Hereā€™s a guide thatā€™ll help you get filezilla set up:

1 Like

Iā€™m using ftp on openbsd.

in the ā€˜bugsā€™ section of the man page says:
ā€œCorrect execution of many commands depends upon proper behavior by the remote server.ā€

can it be a server bugs? Why infinityfree and 000webhost are identical in everything? why donā€™t you use sftp or something else (related to 9p) instead?

I can honestly say the only problems Ive had have been when using either the onsite file manager and libftp for python. The best way to check if it is a server side bug would be to try a different FTP client and see if it has the same results.

Also make sure that your browser isnt Casheing the page (ctrl+f5 usually works, or an incognito browser session)

I canā€™t speak to adminā€™s motives for why sftp isnā€™t supported. But ultimaitly its a limitation on the free accounts and its something we just have to work with

1 Like

We use Pure-FTPd, basically the go-to FTP server out there and used by the overwhelming majority of web hosting providers. Iā€™ve never used the ftp command line client myself

In my personal opinion, I do think that SFTP is the ā€œnicerā€ protocol to use. Itā€™s more modern, and probably less finicky with NAT too. And itā€™s secure by default, which is great.

But for some reason thatā€™s beyond me, FTP is still the default for web hosting. cPanel, the most well known web hosting control panel (also used on iFastNetā€™s premium hosting), supports FTP by default, but I think that SFTP is tied to SSH access. And SSH access with web hosting is typically only available as a higher tier addon, and definitely not available with free hosting.

Iā€™m not sure what the technical challenges are regarding supporting SFTP access. But there is not that much demand for it.

You also have to consider that you are probably a lot more technically skilled than most of our users. Most people using our hosting simply use visual interfaces like FileZilla, which works great with FTP in general, and Pure-FTPd specifically as well.

5 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.