Author: isjf | Posted on: 3/31/2009 9:20:08 AM | Views : 816

hi there

I have a page which is for user to upload file 

after user click the button of "Upload"

 first upload the physical file to folder

then

insert the information of this file ( such as file name , file size and so on...) to DB

--------------------------------------------------------------------------------------------------------------------------------

I just thinking if any error caused in this transaction

like that ... I have uploaded file to folder but error caused on insert data to DB

so the result is I have a file on folder but I don't have this file's record in my DB

 

does anyway to avoid this problem? like  transaction ... rollback? I'm not sure..

can you give me a suggestion to force this problem?

 

thank you very much

 
...

Go to the complete details ...