Home > Backend Development > PHP Tutorial > After swfupload uploads the file successfully, how to obtain the data returned by the server, SegmentFault

After swfupload uploads the file successfully, how to obtain the data returned by the server, SegmentFault

WBOY
Release: 2016-10-10 11:55:55
Original
1423 people have browsed 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? ? ?

Reply content:

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.

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template