Shop OBEX P1 Docs P2 Docs Learn Events
Anybody used spinneret to upload files (mikeg's implementation) — Parallax Forums

Anybody used spinneret to upload files (mikeg's implementation)

ErNaErNa Posts: 1,752
edited 2016-03-02 12:36 in Propeller 1
I'm working through mikeg's spinneret implementation to learn the concepts and now stumbled about "file upload". The documentation says: under construction, and indeed, I can not run the demo, in one place it crashes. Had anybody encountered such a problem? That certainly would help.
Thanks, ErNa

One more step: accidently I first tried with a larger text to upload and that didn't work. I discovered, there is a logfile written and this logfile hat an entry of the first part of the text. Now I tried with a shorter text and it works. The file is uploaded and can be read back :-). And the log file now shows me interesting details about the traffic, I hope to understand now.
In the servercode in different places wait commands are inserted, so I hope it is not a timing problem.

Comments

  • ErNaErNa Posts: 1,752
    It is not. Must be a buffer overflow. If the file to upload is <700 bytes, it works as it should, but if more bytes are transfered, the process crashes. There is a critical point where upload works, but then a server is crashed. Information can be retrived after reset. A few bytes more and the overflow happens in the upload cycle, the information then is not written to the sd-card
Sign In or Register to comment.