Deleting files and corresponding entries from database

后端 未结 5 744
情书的邮戳
情书的邮戳 2021-01-25 19:08

I have a web site which handles files management. User can upload file, add description, edit and delete. What are the best practices for that kind of scenario?

  1. <
5条回答
  •  隐瞒了意图╮
    2021-01-25 19:26

    Vista introduced Transactional NTFS that will allow you to wrap file system operations along with database operations into a transaction that can be rolled back if either failed. This is not in .Net 3.5 and I do not know if it will be part of .Net 4.0, but there is evidence that it works today with a bit of leg work, i.e. by using Win32 calls (see this article).

    I know nothing about transaction management in PHP.

提交回复
热议问题