Relative Content

Tag Archive for upload

Best practice for uploading large file, previewing, and editing before saving to database?

I am allowing users to upload a relatively large .csv file (about 1MB) – it will contain thousands of records that each represent one of my business objects. I want the users to upload the file and then be displayed paged results (after I serverside parse it, add validation messages, etc). They can review/edit the results page by page until they are satisfied. At this point, they’d click a Save button and all of the data would be saved to my database. Alternatively, they could click a Cancel button – this would release all of the uploaded data and none of it would touch my database.

Best practice for uploading large file, previewing, and editing before saving to database?

I am allowing users to upload a relatively large .csv file (about 1MB) – it will contain thousands of records that each represent one of my business objects. I want the users to upload the file and then be displayed paged results (after I serverside parse it, add validation messages, etc). They can review/edit the results page by page until they are satisfied. At this point, they’d click a Save button and all of the data would be saved to my database. Alternatively, they could click a Cancel button – this would release all of the uploaded data and none of it would touch my database.