I am building a GAE app that basically lets a user choose a JSON file on there computer, this JSON file will then be changed a little (i.e a few fields inserted) and uploaded to the server for storage in a database.
I am altering the JSON file locally using Javascript.
My question is, since you cannot load and change JSON (and other resources) from a local machine does this mean I have to firstly upload the unaltered JSON to the server?
i.e. do I have to do this:
- User selects raw unaltered JSON file from their computer
- This is then uploaded to the server
- The unaltered JSON is then sent back to the client
- Perform some javascript wizardry on the JSON to add the new fields etc I want.
- Upload the altered JSON file to the database
- Delete the old unaltered JSON file from the database
Would this be the correct method? It seems quite long-winded.
Thanks for your help people :)