How could I recover my files uploaded deleted by someone.

Tagged:  

Some one in our team deleted my files uploaded. How could I get it back? Thanks a million!!!

Whether you use hosting from a third party or host within your company your system admin should have a nightly backup of your server.

Maybe it is a good idea to support upload backup. This could be a system wide option. If the option is active then every uploaded file is copied also to a backup place (either file system or database). It would double the amount of disk space but chances to losing files due to end users manipulations are practically zero.
Administrators should be given an option to retrieve files from that backup place.

Edit 1: A much simpler solution would be to not delete anything for real. Just update a field in the database and from then on hide from everyone. This could be done system wide. Only administrators would have an option to view deleted objects and restore them. Administrators would also be in a position to start a purge mechanism to really remove the data from database and file system with an option to back it up first.

Edit 2: Another solution is to move each record to be deleted to another table before it is deleted. No need to change existing code and still the option to recover (i.e. copy back). The purge mechanism is also simple: Just clean the tables with deleted records. We use this at work.