No refresh file Upload
Ajax Formdata Object completes no-flush operation
The AJAX Level 2 standard can operate on files, but only new browsers (incompatible with the low version of IE), are H5 standard
Precautions:
Form size
Single File Upload size
Real:
Write a form form, but be aware that the Enctype attribute is not set for form forms
Bind a Click event for the uploaded button, complete the AJAX submission upload file
Use Formdata to collect data from form forms (normal data + upload domain)
To use the onprogress handle of the upload member of an Ajax object to monitor the file upload situation
Set an upload progress bar display box
b) CSS Settings
c) Set up monitoring file upload events
To monitor Ajax operations with onReadyStateChange
Send AJAX requests (Note: You do not need to set up an AJAX request header when using Formdata to upload data)
Use the event source (the uploaded file) to make progress display in OnProgress
Server data.php file implementation upload file processing
IFRAME implementation without flush upload
Create a index.php file, set the upload domain
Technology point 1: You need to set up a form submission open window an IFRAME defined for itself
Technical point 2: The data.php file needs to process the resulting picture, then return the image URL address, use top to get the window to open the current IFRAME, modify the src attribute of the IMG tag
2. data.php to finish saving and returning pictures
The above on the introduction of no-refresh file upload, including file upload, the content of the new text, I hope that the PHP tutorial interested in a friend helpful.