|
@@ -12,7 +12,7 @@ class UploadController extends Controller
|
|
{
|
|
{
|
|
try {
|
|
try {
|
|
//获取上传的文件
|
|
//获取上传的文件
|
|
- $file = $request->file();
|
|
|
|
|
|
+ $file = $request->input();
|
|
return response()->json(['data' => $file]);
|
|
return response()->json(['data' => $file]);
|
|
//获取上传图片的临时地址
|
|
//获取上传图片的临时地址
|
|
$tmppath = $file->getRealPath();
|
|
$tmppath = $file->getRealPath();
|