< /p>
<form id="form1" method="POST" action="http://XXXXXX/file/upload/" enctype="multipart/form-data">
<p>
<input id="File1" type="file" name="files"/>
<input type="submit">Submit</input>
</p>
</form>
This is a code for uploading files
1: Single click execution such asfile:///Applications/XAMPP/xamppfiles/htdocs/vscodtest/flex.html
It is possible to upload
2: It can also be executed on locahost such as "http://localhost/vscodtest/fl..."
The problem is:
It won’t work if I copy this code into our project thinkPHP
Is there anything special configuration required?
It’s a cross-domain issue
Please refer to the
X-Frame-Options response header