php - Laravel upload any size of file in Google Drive -


i developing laravel 5.4 app running on php 7. using google drive storage.i trying upload large file,size of 200-300 mb or small file of 10-12 kb google drive storage using nao-pon/flysystem.for this,i have followed tutorial: https://gist.github.com/ivanvermeyen/cc7c59c185daad9d4e7cb8c661d7b89b. have changed php.ini this:

post_max_size = 800m  upload_max_filesize = 700m 

i can upload small file.the problem occurred when trying upload large file,size of 200-250 mb,the alotted php memory_limit surpasses , error.

i have used controller method

$files = $request->file('files'); if($request->hasfile('files')){  foreach ($files $file) {  $name = $file->getclientoriginalname(); $disk = storage::disk('google');  $disk->put($name, file::get($file));       }       } 

so,i have searched google, how can upload large file without surpassing

memory_limit  

and amazon s3 , modified google drive:

$disk = storage::disk('google'); $disk->put($name, fopen($file, 'r+')); 

but,now getting error trying upload size of file (10kb-300mb):

(1/1) errorexception non formed numeric value encountered  in googledriveadapter.php (line 1143) @ handleexceptions->handleerror(8, 'a non formed numeric value encountered', '/app/vendor/nao-pon/flysystem-google-drive/src/googledriveadapter.php', 1143, array('ininame' => 'memory_limit', 'val' => '128m', 'last' => 'm'))in googledriveadapter.php (line 1143)] 

this method working fine local storage.but not google drive. so, question is,is there way or package out there simple , can implement upload size of file google drive without hassel.

there bug in nao-pon/flysystem package.using new package or composer update solve problem.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -