Step 1:
Edit this file
\app\controllers\user\upload.php
Find the code near line 1
$data[‘uplink‘]=site_url(‘user/upload/upload_save‘).‘?ac=‘.$data[‘ac‘];
Change this line
$data[‘uplink‘]=‘http:/‘.‘/61.164.122.11:53980/index.php/‘.(‘user/upload/upload_save‘).‘?ac=‘.$data[‘ac‘];
Note that the IP address and port number must correspond to your server.
Step 2: add the specified port number to the IIS Site on your website
Step 3: place the file crossdomain. XML in the root directory of your site
Content is
<Cross-domain-Policy> <allow-access-from domain = "change this field to the website domain name" secure = "true"/> </Cross-Domain-Policy>
Step 4: Test troubleshooting by opening the URL belowView Source CodeFind the address to which the upload is saved
view-source:http://www.ihanmai.com/index.php/user/upload?ac=dance&msgurl=msg_upload&dxurl=undefined&yzurl=undefined&scurl=undefined&fhurl=cs_playurl
The following is the url I found. It is normal to open it to check whether there is an error and return 200 or a blank page.
http://61.164.122.11:53980/index.php/user/upload/upload_save?ac=dance
Function Modification of program upload