我正在尝试获取学生上传文件的文件名。一个学生可以学习很多课程,所以我有一个包含所有细节的对象。我的文件是base64编码的。 一名学生的学生数据对象如下所示:
var studentdata ={
data:
[{
name:
course:
address:
time:
file: "this is base64 encoded data"
},
{
name:
course:
address:
time:
file: "this is base64 encoded data"
]}
}
Here i want to add uploaded filaname for each file inside the object.
I can't achieve this by getting the document.getElementById("fileinput").value. this will only give me name of first file.
Is there any other way of doing this.