How to remove file size limit in Google Drive repo?

How to remove file size limit in Google Drive repo?

by Arun Joseph -
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: -
In reply to Arun Joseph

Re: How to remove file size limit in Google Drive repo?

by Arun Joseph -
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));
}