A-Run A-Run - 24 days ago 6
AngularJS Question

File upload in angularjs not stored in it's original format

I am new to Angularjs. I am trying to upload a single word/pdf file in the server. I have used the sample given in this link www.tutorialspoint.com/angularjs/angularjs_upload_file.htm

The process grabs the file and puts it in the specified place, but the problem is it's in a different format or unreadable format.

The format of the file is as shown in the imagefile stored in the uploads folder

Any idea what i am doing wrong?

Answer

As specified in the comment by "EasterBunnyBugSmasher". Renaming the file worked. While uploading a file through website, the response renames the file with a randomly generated number.