I have a scenario (though been searching, have not found any lead yet) wherein user attempts to upload, but before clicking upload, user renames the filename/deletes the file.

How do I capture this in code (PHP) once user clicks upload button?

Please help. Thanks.

Sample codes would be very well appreciated. Concepts would also do.

Thanks.

Note: I am using CodeIgniter Framework