javascript - A problem when uploading files
我想大声告诉你
我想大声告诉你 2017-05-16 13:04:44
0
1
434

< /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 as
file:///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?

我想大声告诉你
我想大声告诉你

reply all(1)
小葫芦

It’s a cross-domain issue

Please refer to the
X-Frame-Options response header

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template