Page 1 of 1
Problem with 3.3.0 FTP Server access from web browser
Posted: Tue Dec 15, 2020 12:28 am
by jaypdx
I took the example from examples\EFFS\Fat\Ftp and added it to my MOD55415 application. It kind of works, but not completely. I can FTP into the board from the command line and things seem to work ok (dir, cd, get/put all work). But if I try to connect from Chrome or Edge (i.e. open
ftp://192.168.1.10) I get an error like 'This server is sending data Google Chrome can't understand'.
I remember using this stuff years ago on a 2.x project and I'm pretty sure it worked ok using a browser to access the FTP. Any idea what's going on?
Re: Problem with 3.3.0 FTP Server access from web browser
Posted: Mon Dec 21, 2020 11:04 am
by TomNB
I'm not sure exactly what you are using, but I tried a number of ftp clients, such as filezilla, windows command line and ws-ftp and they all work.
ftp://x.x.x.x also worked for me on firefox and edge. Chrome would not accept ftp:// anything, whether a netburner board or any other ftp site.
I would try an unmodified example that uses ftp and the file system as a check. Whatever your doing in the code might affecting the format.
Re: Problem with 3.3.0 FTP Server access from web browser
Posted: Thu Dec 24, 2020 5:43 pm
by jaypdx
Looks like the problem was some strange timestamps on my card.
Here's what I was getting if I FTP'd into the netburner from windows command prompt:
Code: Select all
ftp> dir
200 Port Command okay.
125 Data connection already open; transfer starting.
d-rw-rw-rw- 1 none 0 Jan 0 1980 0
d-rw-rw-rw- 1 none 0 Jan 0 1980 1
d-rw-rw-rw- 1 none 0 Jan 0 1980 2
d-rw-rw-rw- 1 none 0 Jan 0 1980 3
d-rw-rw-rw- 1 none 0 Jan 0 1980 4
d-rw-rw-rw- 1 none 0 Jan 0 1980 5
d-rw-rw-rw- 1 none 0 Jan 0 1980 6
d-rw-rw-rw- 1 none 0 Jan 0 1980 7
d-rw-rw-rw- 1 none 0 Jan 0 1980 8
d-rw-rw-rw- 1 none 0 Jan 0 1980 9
d-rw-rw-rw- 1 none 0 Dec 6 12:43 System Volume Information
--rw-rw-rw- 1 none 6548149 Jan 16 2018 logfile.txt
--rw-rw-rw- 1 none 20181 Nov 19 23:06 LOGFILE.TXT
--rw-rw-rw- 1 none 1372 Dec 24 13:57 scratch
--rw-rw-rw- 1 none 716 Dec 24 13:11 config.txt
226 Closing data connection. Listing complete.
ftp: 767 bytes received in 0.08Seconds 9.71Kbytes/sec.
ftp> quit
Not sure how those strange time/datestamps got on there, but after formatting the card things are back to normal and browser access to FTP works just fine.
Re: Problem with 3.3.0 FTP Server access from web browser
Posted: Thu Dec 24, 2020 8:58 pm
by pbreed
Likely you wrote the files before the system had gotten time...
IE NTP had not yet finished.
So time stamps were all bogus...