jdittrich / quickMockup

HTML based interface mockups
https://jdittrich.github.io/quickMockup/
MIT License
517 stars 97 forks source link

read files from disk #26

Closed jdittrich closed 8 years ago

jdittrich commented 8 years ago

User Story: I want to edit files I saved/got send

How would this look like: The user would have a button "load". After a click, a (upload) file chooser appears, a file can be selected. Its content is loaded.

We might want to have a warning before, so the user can save any work before the new content is loaded.

Special case: the file is not a quickMockup file (or does not share its structure). In this case you get an error.

jdittrich commented 8 years ago

Implementation:

simonv3 commented 8 years ago

So I was thinking about a similar user story:

I was using my local quickMockup copy before updating to the most recent version and realized that if I update the code, and press refresh, I would lose all of my work, missing out on new functionality. There should probably be some way to import data (eg, reading a file) from an older version.

This lead to me to think that it might make sense to "save" data temporarily in the user's browser's cache? Then a refresh of the page would not delete their work.

jdittrich commented 8 years ago

The current version has the possibility to open files – did that work for you?