Use UUID for resource ID

Current implementation is not working when someone is attaching a file with same name as a previous attachment.

Why not use UUID for resource ID?