1

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="";
if(properties.ItemEventProperties.AfterProperties.ContainsKey("LinkFilename"))
                        {
                            name= properties.ItemEventProperties.AfterProperties["LinkFilename"].ToString();
                        }
                        else
                        {
                            name= "No data";
                        }

Please help me out for this.

0

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.