How to set the filepath/name with a file without an extension
<p>I'm building a C# application that sends a file by email to a mail address but how to send it if the file has no extension, files with a extension just work fine like: </p>

<blockquote>
  <p>"/folder/folder2/folder3/testimage.jpg"</p>
</blockquote>

<p>but when using no extension it's like : </p>

<blockquote>
  <p>"/folder/folder2/folder3/testfile"</p>
</blockquote>

<p>I think the problem is that is thinks testfile is a folder and not a file. </p>

<p>How to solve this problem?</p>

<p>&lt;>
I had some typo's thats the reason it didn't worked. thanks everybody for quick and useful respondses:).
&lt;></p>
