How to remove file size limit in Google Drive repo? by Arun Joseph - Wednesday, 7 October 2020, 8:22 PM Number of replies: 1 I've limited the file size to 20mb for uploading.I configured Google Drive that only link of the files will be stored in the database. So I want to give users the ability to attach large-sized file through Google Drive repo. How is it possible? Average of ratings: - Permalink Reply In reply to Arun Joseph Re: How to remove file size limit in Google Drive repo? by Arun Joseph - Thursday, 8 October 2020, 3:30 AM Hello everyone! I managed to fix this issue by adding some code to the repository_ajax.php. added $repo->name != 'Google Drive' condition to the following if clause. if ($maxbytes != -1 && filesize($downloadedfile['path']) > $maxbytes && $repo->name != 'Google Drive') { $maxbytesdisplay = display_size($maxbytes); throw new file_exception('maxbytesfile', (object) array('file' => $record->filename, 'size' => $maxbytesdisplay)); } Average of ratings: - Permalink Show parent Reply
In reply to Arun Joseph Re: How to remove file size limit in Google Drive repo? by Arun Joseph - Thursday, 8 October 2020, 3:30 AM Hello everyone! I managed to fix this issue by adding some code to the repository_ajax.php. added $repo->name != 'Google Drive' condition to the following if clause. if ($maxbytes != -1 && filesize($downloadedfile['path']) > $maxbytes && $repo->name != 'Google Drive') { $maxbytesdisplay = display_size($maxbytes); throw new file_exception('maxbytesfile', (object) array('file' => $record->filename, 'size' => $maxbytesdisplay)); } Average of ratings: - Permalink Show parent Reply