如何获取学生数据的每个上传文件的文件名

时间:2018-07-09 17:23:33

标签: javascript file-upload

我正在尝试获取学生上传文件的文件名。一个学生可以学习很多课程,所以我有一个包含所有细节的对象。我的文件是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.

0 个答案:

没有答案