jQuery image file batch upload queue code
code segment:
$('#easyContainer').easyUpload({
allowFileTypes: '*.jpg;*.doc;*.pdf', //Allow upload file types, format ';*.doc;*.pdf'
allowFileSize: 100000,//Allow upload file size (KB)
selectText: 'Select file', //Select file button copy
multi: true,//Whether to allow multiple file uploads
multiNum: 5, //The number of files allowed when uploading multiple files
showNote: true,//Whether to display file upload instructions
note: 'Tips: Up to 5 files can be uploaded, and the supported formats are doc, pdf, and jpg', //File upload instructions
showPreview: true,//Whether to display file preview
url: 'api/file/upload',//Upload file address
fileName: 'file',//File filename configuration parameter
formParam: {
token: $.cookie('token_cookie')//You can remove it if you don’t need to verify the token
},//Configuration parameters other than file filename, format: {key1:value1,key2:value2}
All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn
Related Article
13 Jul 2016
PHP file upload code (supports batch upload of files). PHP tutorial file upload code (supports file batch upload) This file upload class defaults to uploading single files. We only need to modify $inputname ='files' to your form name and it will be convenient.
16 May 2016
I have never been able to find an example of jquery uploading images on the Internet. Today, due to work needs, I searched for a long time on the Internet and found an incomplete example. I modified it and it is now available, but only for It cannot be used under IE and Firefox because the local uploaded image path cannot be obtained under Firefox. I hope it can be helpful to novices.
13 Jul 2016
PHP image and file batch upload code. PHP image and file batch upload code. Whether it is file or image batch upload, the first thing we do is to make an array variable such as name=userfile[] in HTML. In PHP acceptance, we do for ($_i=0; $
06 Jan 2017
Through PHP, files can be uploaded to the server. Some image judgments are added to it. If you do not judge the file type, you can upload files in any format.
13 Jul 2016
PHP simple file and image batch upload program code. The batch upload method is also very simple. We only need to add a name="pictures[]" array to the form, and then use foreach ($_FILES["pictures"]["error"] as $key => $error) to Circular judgment
01 Mar 2019
In the process of web design, we often use some HTML5 special effects codes. Here are some cool and practical HTML5 special effects codes compiled and shared by php Chinese website. You can feel free to use them in your applications.
25 Jul 2016
PHP+ajax image file asynchronous upload sample code
09 Dec 2016
Input file upload image preview function example code
15 Jun 2017
Applications based on HTML5 are now very widespread. Today we will share with you 20 very gorgeous HTML5/CSS3 application plug-ins. Hope you all like it and share it with your friends. 1. HTML5 video breaking and reorganization special effects. Powerful visual impact. There are many HTML5 video players, but HTML5 video special effects are still rare. This HTML5 video breaking and reorganization special effect is very exciting and gives people a strong visual impact. Click anywhere in the video, and HTML5 will break these areas into pieces. After a while, these broken video fragments will automatically reassemble...
Hot Tools
HTML5 Canvas heart fluttering animation special effects
HTML5 Canvas heart fluttering animation special effect is a generated animation that can be directly opened with a browser to see a heart.
H5 panda bouncing game source code
HTML5 Mobile Panda is also a crazy game source code. Game description: Press and hold the screen to adjust the strength of the panda spring and jump to the stone pillar. The game ends if you fall into the river.
HTML5 Valentine's Day box animation special effects
Based on svg, draw animations of opening love box gifts on Valentine's Day, and special effects of love box animation.
H5 3D rolling ball game source code
HTML5 cool 3D ball rolling mobile game code download. Game introduction: A colored ball rolls, and the current track of the colored ball is controlled by dragging it with the mouse or the touch screen of the mobile phone. This is a simple and easy-to-operate mobile game source code.