Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
117 views
in Technique[技术] by (71.8m points)

Google drive error while uploading the file from laravel

throw this error Google_Exception (list) unknown parameter: 'maxResults'

// code 

 $eod = new Eod;
 $eod->user_id = auth()->user()->id;
 $eod->save();
 $folderName = time();
$donationInfo = Society::where('eod_id', $eod->id)->first();
$pdf = PDF::loadView('pdf.society', compact('donationInfo'));
$fileName = 'society_army-' . $eod->id . '.pdf';
Storage::disk('public')->put('downloads/donation_' . $folderName . '/' . $fileName,  $pdf->output());

$fileAddress = storage_path().'downloads/donation_' . 'downloads/donation_' . $folderName . '/' . $fileName;
$file = new UploadedFile($fileAddress, 'file');
$request->files->set("file['.$j.']", $file);
$drive_result   = $this->uploadToGoogleDrive($request, AppClient::find($request->client_id)->getFullNameAttribute(), $fileName, 'DonationReceipt');

my running website throwing this error while uploading the file on google drive. My logic is to create a pdf and uploaded it to google drive everything running fine for years but now I am seeing this error. Is anyone has any idea about this

question from:https://stackoverflow.com/questions/65829000/google-drive-error-while-uploading-the-file-from-laravel

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...