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