I am trying get file name after uploading, I am not able to get any properties. Below is the code i am using.

string name="";
                            name= properties.ItemEventProperties.AfterProperties["LinkFilename"].ToString();
                            name= "No data";

Please help me out for this.


You could get file name from properties.ItemEventProperties.AfterUrl

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.