is there any way to change the file name dynamically in angular js
<input type="file" onchange="angular.element(this).scope().filename(this)">
and in filename method i am changing the file name but value is not changing how i can i change the file name in file upload
$scope.filename= function(e)
{
for (var i = 0; i < e.files.length; i++) {
var x = e.files[i].name + "test";
e.files[i].name = x;
/// here i am changing the file name but it shows its
read only property how can i change the name
}
}
I want to change the upload file name...I have to assign file name for every uploaded file how?