Level 7
this is the extension that allowed by intervention
JPEG PNG GIF TIF BMP ICO PSD WebP
i want to upload .ai extention file, and i use intervation for this bt still not uploaded,it store any type of file bt not upload .ai file and here is no size issue max size is 50mb and i want to upload 8mb .ai file here is my function
public function store(Request $request)
{
try{
if($request->hasFile('file')){
$imagemodel= new Photo();
$image = $request->file('file');
// $filename = time() . '.' . $image->getClientOriginalExtension();
$originalname = $image->getClientOriginalName();
Image::make($image)->resize(300, 300)->save( public_path('images/' . $originalname));
$imagemodel->photo_name = $originalname;
$imagemodel->save();
return back()->with('success', 'Image Upload successfully');
}
}catch(Exception $e){
return $e->getMessage();
}
}
Please or to participate in this conversation.