Home > Article > Backend Development > iframe adaptive height php+iframe implements hidden upload files without refreshing
First of all, ajax cannot upload files, which misled me for a while. I couldn’t sleep tonight so I followed the instructions and uploaded files without refreshing. In fact, the principle is very simple. Copy the code. The code is as follows:
< form enctype="multipart/form-data" method="POST" target="upload" action="http://localhost/class.upload.php" >
is similar to the general