javascript - Please tell me what plug-in can be used to upload jq files. Can fileUpload be used?
怪我咯
怪我咯 2017-05-18 10:55:05
0
5
791

To implement a file upload function in the project, please tell me how to implement it through Jq

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(5)
仅有的幸福

jquery-plugins upload-1-jq. There are too many written plug-ins like this on the Internet.

我想大声告诉你

uoloadify, this is used in company projects. It is recommended to use the latest version. Our company's backend has to use the old version. As a result, we have to write a lot of things ourselves, which is annoying.
uploadify is divided into two versions: swf and H5. The H5 version is charged, and the swf version has good compatibility

过去多啦不再A梦

Upload with base64

大家讲道理

Just use jquery.form.js
https://github.com/jquery-for...

$('#form').ajaxSubmit({
    url : '${ctx}/file/upload',
    data : {
    },
    dataType : 'json',
    success : function(data) {
    },
    error : function(data) {
    }
});
<form id="form" method="post" novalidate enctype="multipart/form-data">
    <input name="file" type="file" />
</form>
过去多啦不再A梦

Just use formdata directly with the input tag of type file

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template