Skip to main content
Nintex Community Menu Bar

Get file path and file extension

  • July 25, 2022
  • 3 replies
  • 150 views

Forum|alt.badge.img+2

Hi all,

I'm wondering whether has any way I can get the file path and file extension while attaching a file. 

I have a ListView and when I attach a file to a file attachment control, it's automatically added to the ListView.

24637i571F444185AA4319.png

I can get the file name.

24639iF50A520A6FCBC873.png

But I don't know how to get the file path and file extension. 

 

 

3 replies

  • July 25, 2022

To extract filename from the file, we use “GetFileName()” method of “Path” class. This method is used to get the file name and extension of the specified path string. The returned value is null if the file path is null. Syntax: public static string GetFileName (string path);


  • Nintex Employee
  • August 12, 2022

The challenge is the full path is only relevant for the current user.  A different user viewing that information may not have access to the original location. Once it is uploaded, you have the file so its original location is no longer needed by most applications.


  • September 30, 2022

Thanks for this thread..  myfiosgateway.com

mobdro