../MAdminWTRegistrationDocuments/CretificateOfInCorporation14022024152400.jpg this is my image in registration now i want to edit the userdetails to update show the image url in fileupload controller how to do this
Loading
../MAdminWTRegistrationDocuments/CretificateOfInCorporation14022024152400.jpg this is my image in registration now i want to edit the userdetails to update show the image url in fileupload controller how to do this
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.
Jayraj ChhayaPosted Mar 11, 2024, 6:10 AM
Hi,
To retrieve the file name in the FileUploadController, you can extract it from the provided image URL. In a .NET environment, you can use the
Path.GetFileNamemethod to get the file name from the URL. Here's a sample code snippet to achieve this:By utilizing
Path.GetFileName, you can extract the file name "CretificateOfInCorporation14022024152400.jpg" from the image URL.