如何使用jQuery.filer文件上传插件检索以编辑形式显示的图像

时间:2015-06-25 07:31:48

标签: jquery image file

我正在使用jQuery.filer plugin拖放方法。它在上传时工作正常。

如何检索这些图像并以编辑形式显示它们?

1 个答案:

答案 0 :(得分:1)

根据文档:https://github.com/CreativeDream/jquery.filer/,您需要使用文件选项。

$('input').filer({
     files: [
         {
            name: "appended_file.jpg",
            size: 5453,
            type: "image/jpg",
            file: "/path/to/file/appended_file.jpg"
         }
     ]
});