shahab Posted May 14, 2004 Posted May 14, 2004 I have an upload center... every thing is ok! Suppose that they are authorized so what the code for del the pics(themselves).U know in upload procedure i up;oad the image file in a special folder on server then save it's name in DB. Now the Supervisor or some special users want to del the images that had sent before! Quote
Arch4ngel Posted May 14, 2004 Posted May 14, 2004 in .NET... look for System.IO System.IO.File.Delete("filename") Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Moderators Robby Posted May 14, 2004 Moderators Posted May 14, 2004 You may want to look up Impersonate. Quote Visit...Bassic Software
shahab Posted May 14, 2004 Author Posted May 14, 2004 You may want to look up Impersonate What do u mean? Quote
shahab Posted May 14, 2004 Author Posted May 14, 2004 U know I want to del that Image file authomatically when ever I del it's name! Quote
Moderators Robby Posted May 14, 2004 Moderators Posted May 14, 2004 Sorry I should've explained, if the guest account doesn't have enough pemission to delete files off the sever, you will need to grant permission to the process by impersonating an account othe than Guest. Look up "Impersonate Security ASP.NET" on google. Quote Visit...Bassic Software
shahab Posted May 14, 2004 Author Posted May 14, 2004 "guest account "Not nessecerry!Every Authed user must be able to del her/his image :-\ My gaol is to do deletaion programmatically!:) ConCurrent by Del from DB(Name of the Image) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.