Hello sir, i have some doubts on this...
In the dynamic action you have issued a command to delete files from apex_application_temp_files, then in JavaScript u just previewing it. on the next Ajax call u are getting file/data from apex_application_temp_files which u have deleted earlier and i believe u missed to explain how to add files to apex_application_temp_files.. can u explain this