Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mos.exe: can't upload (PUT) file #401

Open
freedaun opened this issue Feb 1, 2018 · 0 comments
Open

mos.exe: can't upload (PUT) file #401

freedaun opened this issue Feb 1, 2018 · 0 comments

Comments

@freedaun
Copy link

freedaun commented Feb 1, 2018

(4MB NodeMCU/Windows 10)

For some reason a PUT stopped working:

PS C:\Mongoose> ls

    Directory: C:\Mongoose

Mode                LastWriteTime         Length Name
----                -------------         ------ ----
d-----       01/02/2018     11:54                build
d-----       29/01/2018     15:19                Videos
-a----       31/01/2018     10:56         164504 big.txt
-a----       31/01/2018     10:56         164504 big2.txt
-a----       30/01/2018     10:17           1457 init.js
-a----       29/01/2018     08:37       22875510 mos.exe

PS C:\Mongoose> .\mos.exe put .\big2.txt --port COM7
Error: (400) failed to open file ".\big2.txt"
PS C:\Mongoose> .\mos.exe put big.txt --port COM7
Error: (400) failed to open file "big.txt"
PS C:\Mongoose> .\mos.exe put .\big2.txt --port COM7
Error: (400) failed to open file ".\big2.txt"
PS C:\Mongoose> del big.txt
PS C:\Mongoose> .\mos.exe put big.txt --port COM7
Error: open big.txt: The system did not find the specified file.
PS C:\Mongoose>

It could be because there is no space on the destination (flash) file-system, but the message suggests otherwise [CONFIRMED this is the case].

Note that a mos PUT with a large file truncates the file silently(!), without an error. A subsequent GET from the web interface apparently hangs the logging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant