jQuery PHP image batch upload code
js code
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="webuploader-0.1.5/webuploader.js"></script>
<script type="text/javascript">
window.webuploader = {
config:{
thumbWidth: 220, //Thumbnail width, can be omitted, default is 110
thumbHeight: 220, //Thumbnail height, can be omitted, default is 110
wrapId: 'uploader', //Required
},
//When processing the client's new file upload, the address that needs to be called for background processing is required
uploadUrl: 'fileupload.php',
//The background processing address when processing the client's original file update, required
updateUrl: 'fileupdate.php',
//The background processing address when the client's original file is deleted, required
removeUrl: 'filedel.php',
//Initialize the client to upload files and obtain the file address from the background. Optional. When this parameter is empty, the uploaded file will be empty by default
initUrl: 'fileinit.php',
}
</script>
<script src="webuploader-0.1.5/extend-webuploader.js" type="text/javascript"></script>
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
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.
04 Aug 2016
This article mainly introduces the source code of php+flash+jQuery multi-image upload implementation in detail. It has certain reference value. Interested friends can refer to it.
19 Jun 2019
Webuploader is mainly used to upload files. It supports batch upload and image preview. Image preview generates base64 data from the image and uses it directly in the tag, so the effect that can be achieved is that you can see the upload effect before actually uploading the image.
03 Feb 2018
This article mainly introduces the PHP batch deletion jQuery operation to everyone. It is very good and has great reference value. Friends in need can refer to it. I hope it can help everyone.
13 Jul 2016
php+jquery Ajax asynchronous upload image (ajaxSubmit) example. Let's take a look at an example of php+jquery Ajax asynchronous uploading of images (ajaxSubmit). In this case, we really use ajax instead of using iframe or the like. The effect is as follows. The code is as follows
25 Jul 2016
PHP jquery multiple file upload implementation code
29 Jul 2016
Upload images in batches: PHP's simple method to upload images in batches: This article describes an example of PHP's simple method to upload images in batches. Share it with everyone for your reference, as follows: <phpfunction upload_multi($path,$photo,$i){$uploaddir = './'.$path;//File storage directory if(!file_exists($uploaddir))/ /If the directory does not exist, create a new one $uploaddir=mkdir($uploaddir);$piece = explode
16 May 2016
We used an Ajax form submission plug-in in this article: jqery.form.js. An expert modified a few lines of code and renamed it: jquery.wallform.js, and used it directly. Let’s take a look at this amazing jQuery plug-in.
Hot Tools
jQuery2019 Valentine's Day Confession Fireworks Animation Special Effects
A very popular jQuery Valentine's Day confession fireworks animation special effect on Douyin, suitable for programmers and technical geeks to express their love to the girl they love. No matter you choose to be willing or not, you have to agree in the end.
layui responsive animated login interface template
layui responsive animated login interface template
520 Valentine's Day confession web animation special effects
jQuery Valentine's Day Confession Animation, 520 Confession Background Animation
Cool system login page
Cool system login page
HTML5 tape music player-CASSETTE PLAYER
HTML5 tape music player-CASSETTE PLAYER