Home >Backend Development >PHP Tutorial >After swfupload uploads the file successfully, how to obtain the data returned by the server, SegmentFault
Currently, swfupload can be used to access the last file, but I don’t know which js function is used to obtain the data returned by the server, and how to obtain it? ? ?
Currently, swfupload can be used to access the last file, but I don’t know which js function is used to obtain the data returned by the server, and how to obtain it? ? ?
Which plug-in do you use? The plug-in should have documentation. If you wrote the plug-in yourself, you wouldn't be asking this kind of question.
Here I recommend one that I have used. After uploading, you can get all the file information (upload status, path, size, etc.): http://www.jq22.com/jquery-in...
First of all, your question is a bit unclear. Do you want to say how to get the uploaded file in PHP, or do you want to use JS to get the information returned by the backend after a successful upload?
If you want to know how to get the files uploaded by SWFUpload in PHP, just like ordinary form submission, you can access the uploaded files in PHP through the$_FILES super global variable, and you can use
move_uploaded_file() to save to custom Location.