Skip to content

Instantly share code, notes, and snippets.

@OleMchls
Created November 29, 2013 11:40
Show Gist options
  • Select an option

  • Save OleMchls/7704571 to your computer and use it in GitHub Desktop.

Select an option

Save OleMchls/7704571 to your computer and use it in GitHub Desktop.

I've a upload page, where I want to upload a file to S3 directly and want to enter some meta data. The S3 path is determined by the entered metadata, and all of this, meta data and S3 url should be stored on a backend.

I want to have a "framework" which pushes every change to the backend, I don't want to have a save btn and I want to display a warning when the user tryies to leave the page when upload isn't finished yet. If he leaves anyway I want to destroy all data in backend.

So I guess I need some sort of framework to contain and manage the application state. With a good backend (rails) api.

@robink
Copy link

robink commented Nov 29, 2013

I've seen lots of pretty similar cases based on Angular

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment