I have a laravel code for uploading files to drive using google drive API. This code works 100% perfect but I want to retrieve thumbnail of the document uploaded, for this I have PHP code but I don’t know what can be its laravel equivalent. php $service = new Google_Service_Drive($client); $res =$service->files->get($fileId, ["fields" => .. Read more I am new to GoogleAPIs and Laravel, I run a PHP web application on Laravel 8 in a virtual Linux environment. Socialite and Drive API was working fine and out of sudden it doesn’t work anymore and always return connection refused error after long period of loading as follows: GuzzleHttpExceptionConnectException Connection refused for URI https://www.googleapis.com/oauth2/v4/token .. Read more I have a laravel project in which I use google drive API. It was working fine but then I got the error: "domain": "usageLimits", "reason": "dailyLimitExceededUnreg", "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup." so I again get the refresh token from oauth playground now it is working fine. but I don’t .. Read more I have a laravel project in which I use google drive API. It was working fine but then I got the error: "domain": "usageLimits", "reason": "dailyLimitExceededUnreg", "message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup." so I again get the refresh token from oauth playground now it is working fine. but I don’t .. Read more I am using the "nao-pon/flysystem-google-drive" package for Laravel to use Google Drive as a filesystem and store files. I also need to call these files and show them, but since Google drive doesn’t allow searching by name and only a unique ID, is there a way to get the file ID of the uploaded file .. Read more I have a file uploading project in which user uploads the document doc or pdf that will be saved in google drive. I want that during uploading I get the thumbnail or can say first page of document as image and save that in database. this is my web.php Route::post(‘/upload’, function (Request$request) { $name=$request->file("thing")->getClientOriginalName(); ..

I have a file uploading project in which user uploads the document doc or pdf that will be saved in google drive. I want that during uploading I get the thumbnail or can say first page of document as image and save that in database. Is there a way that I get the thumbnail, like ..

I wanna download files inside a google drive shared folder in which I have editor permission. I am planning to implement that function as cronjob. So I would like to ask if I can do that with just HTTP request or use google API library and write some codes in order to achieve what I ..

I did the code below and I tried to use ‘parents’ to share a file to a specific folder, but it didn’t work. I looked everywhere for a solution, but I can’t find any. function grantPermission($role,$user, $atividade){$userPermission = new Google_Service_Drive_Permission(array( ‘type’ => ‘user’, ‘role’ => $role, ’emailAddress’ =>$user->email, ‘parents’ => array($user->folder_id_minhas_atividades), )); .. Read more I store category images in Google Drive. The category in the database stores the name of the image, the same as the name of the image in Google Drive. By this name, I get the url of the image and display it in the category column. However, I cannot think of how to make sure .. Read more In my Laravel project, I use Google Drive as the file system. For example, a user can change his personal image. During this, I give a name to his file, then use this name to load this image for him and, before uploading a new one, delete the old one. This is what I did .. Read more This is the address of my Google Drive folder (it’s not real, it’s just a set of characters, but the structure is the same as the real one) https://drive.google.com/drive/u/0/folders/1wbFfadsfsdazDFsdwadfsdfqoaAsdfasadsf. This function updates the user’s image if the user wants to update it. I want to delete the old image, so I try to check if .. Read more I am using GoogleDrive as my filesystem for Laravel(using this package). In the tutorial, to add an image there they do it like this:$request->file(‘userimg’)->store(‘1wbJ21pzL0XZwQBVe0hqbbDhbqoUCc2Eo’, ‘google’); A string with a set of characters, this is the ID of a folder in Google Drive, google – probably it means that google is used as the file ..

Following these instructions exactly, I get the following error: refresh token must be passed in or set as part of setAccessToken Code from GoogleDriveServiceProvider: class GoogleDriveServiceProvider extends ServiceProvider { /** * Bootstrap the application services. * * @return void */ public function boot() { Storage::extend(‘google’, function($app,$config) { $client = new Google_Client();$client->setClientId($config[‘clientId’]);$client->setClientSecret($config[‘clientSecret’]);$client->setAccessType(‘offline’); ..

In my Laravel project, I use the Google Drive API, through the composer I installed the package to work with it. Now I am trying to upload an update to the hosting, but the error that I described in this question comes out. I found information on what needs to be added to composer.json in ..

I hosted my Laravel test project on Heroku, but since it doesn’t support file uploads, I had to use google drive. To do this, I installed this package(flysystem google drive) and did everything that was advised in this tutorial. But even when installing the flysystem package, composer issued either a warning or an error, the ..

When im trying to get a filename with a dd(Storage::allFiles()) output show me that files have another names that they have when im going to my google drive, how can i fix it ? Sourc..

I’m sorry if this is a stupid question but is there any way we can get the google drive download link ? I’m using Laravel 5.6 and currently trying to put and get via Google Drive API. Right now the put function is working normally but I can’t seem to find a way to get ..

I am using google drive api with laravel for a continuous backup, so I am using following packages "nao-pon/flysystem-google-drive": "~1.1", and "spatie/laravel-backup": "^6.14" I have set up google drive api v3 with refresh token and put it into .env FILESYSTEM_CLOUD=google GOOGLE_DRIVE_CLIENT_ID=****.apps.googleusercontent.com GOOGLE_DRIVE_CLIENT_SECRET=**** GOOGLE_DRIVE_REFRESH_TOKEN=**** GOOGLE_DRIVE_FOLDER_ID=**** so everything works properly, and I can use google drive as ..

I implemented a Laravel web-app with Google Drive’s API used for storage. I used this tutorial https://gist.github.com/sergomet/f234cc7a8351352170eb547cccd65011. I note that in my application "refresh token" is expiring every 7 days and I don’t know why. My application in Google developers console is in "test" mode. Sourc..

How to access sharedWithMe files list in PHP/Laravel with Google-php-client-api $createdFile =$service->files->create(\$folder, array( ‘mimeType’ => ‘application/vnd.google-apps.folder’, ‘supportsAllDrives’ => true, )); i have added supportsAllDrives = true but its not giving me shareWithMe drive files Sourc..