Hi,
i am try to check .exe file change extension .jpg and uplaod then upload this file but this file is how to check this is executable file or not in if change the extension in c#
please help me
thanks in advance
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
sudipta sanyalPosted Feb 16, 2017, 12:29 AM
sudipta sanyalPosted Feb 22, 2017, 6:47 AM
@Rafnas was already answered the solution, Please go throw his post
Maharudra GadekarPosted Feb 22, 2017, 5:58 AM
sudipta sanyalPosted Feb 16, 2017, 2:25 AM
Rafnas T PPosted Feb 16, 2017, 1:07 AM
string path=FullFilepath;string fileExtension = System.IO.Path.GetExtension("FullFilepath");fileExtension==".exe")path= System.IO.Path.ChangeExtension(fileLocation, ".jpeg");sudipta sanyalPosted Feb 16, 2017, 12:59 AM
Rafnas T PPosted Feb 16, 2017, 12:53 AM
string fileExtension = System.IO.Path.GetExtension("FullFilepath");string dest = System.IO.Path.ChangeExtension(fileLocation, ".jpeg");Amit KumarPosted Feb 16, 2017, 12:40 AM