Files
juipphp/script/linedata/upload.php

20 lines
474 B
PHP
Raw Normal View History

2020-11-06 14:23:48 +08:00
<?php
/*
* @Descripttion:
* @version:
* @Author: kangkang
* @Date: 2020-11-03 11:04:15
* @LastEditors: kangkang
2020-11-12 14:25:48 +08:00
* @LastEditTime: 2020-11-11 11:37:32
2020-11-06 14:23:48 +08:00
*/
header('Access-Control-Allow-Origin: *');
header("Access-Control-Allow-Methods: *");
header('Access-Control-Allow-Headers:*');
header("Access-Control-Allow-Credentials: true");
2020-11-12 14:25:48 +08:00
if(move_uploaded_file($_FILES['file']['tmp_name'],__DIR__.'/data/2288.csv')){
2020-11-06 14:23:48 +08:00
echo "上传成功";
}else{
echo "上传失败";
}