• The issue is that xyz (StorageFile) isn't actually the filename, it's just a note to say it's a different kind of file - see http://www.espruino.com/Reference#StorageFile

    I think right now there's actually no way to upload a file as a StorageFile using the IDE. About all you could do is upload to a normal file, and then use some code on Espruino to copy the standard File to a StorageFile.

    I'm not 100% sure but this may be all you need:

    s = require("Storage");
    s.open(".gpsrc3", "w").write(s.read("myuploadedfile"));
    

    If the plan is to just be able to export the GPS data though then @Serj actually make an exporter that works outside of Bangle.js: http://forum.espruino.com/conversations/360747/#15864867

About

Avatar for Gordon @Gordon started