<?php
// 设置跨域头
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Methods:PUT,POST,GET,DELETE,OPTIONS');
header('Access-Control-Allow-Headers:*');
header('Content-Type:application/json; charset=utf-8');
$file = isset($_FILES['file']) ? $_FILES['file']:null; //分段文件
$name = isset($_POST['name']) ? $_POST['name']:null; //文件名