This is a migrated thread and some comments may be shown as answers.

save new file path of a moved file

2 Answers 38 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Terri-Lynn
Top achievements
Rank 1
Terri-Lynn asked on 03 Nov 2011, 06:01 PM
Hi all:

I need to log when a user moves a file.  Right now, then a user updates a file, I save a reference to it (filepath location), who uploaded it, and when.  If this file gets moved to another location, I need to update this records to now specify where it's been moved to.  I thought I could use the e.Command = "MovedFile", but since it's called BEFORE the file is moved, it's still referencing the current location. Anyone know of a way for me to achieve this?

2 Answers, 1 is accepted

Sort by
0
Accepted
Dobromir
Telerik team
answered on 04 Nov 2011, 09:48 AM
Hi Terri-Lynn,

The event arguments of the ItemCommand server-side event do contain information for the new and old location of the moved file. The NewPath property contains the new path and the Path property is the original file location.

Best wishes,
Dobromir
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Terri-Lynn
Top achievements
Rank 1
answered on 04 Nov 2011, 03:32 PM
Perfect.  And simple... and easy!  :)  Today's a good day! 
Tags
FileExplorer
Asked by
Terri-Lynn
Top achievements
Rank 1
Answers by
Dobromir
Telerik team
Terri-Lynn
Top achievements
Rank 1
Share this question
or