Closed shubaivan closed 8 years ago
I find :)
convert boolean Whether to convert this file to the corresponding Google Docs format. (Default: false)
$insertArray = [
'mimeType' => $fileUpload->getMimeType(),
'uploadType' => 'media',
'data' => file_get_contents($fileUpload),
'convert' => true
];
I use
And I create new spread sheet in google drive
and I have alternativeUrl -
https://docs.google.com/spreadsheets/d/xxxxx/edit?usp=drivesdk
and this is ok, go to this url I have emty google spread sheetAnd I know how to upload exist xls file, generate in PHPExel and save and upload in google drive
and I have alternativeUrl -
https://drive.google.com/file/d/xxxxxx/view?usp=drivesdk
and this is ok, go to this url I see file and button open in GoogleSpreadSheetand this moment my xls file not googleSpreadSheet, only when I open my file in googleSpreadSheet this file will get googleSpreadSheetId
and I can get google spread sheet by id or title
I try replace momeType file in
application/vnd.google-apps.spreadsheet
but have in googledrive emty googleSpreadSheetAnd I refuse to believe that I can not download my file in googleSpreadSheet immediately or right one request. I try find solution but the two day search yielded no results.
How to download my xls file in googleSpreadSheed in one moment ??? Help please