Active
Project:
Droogle
Version:
7.x-2.0-beta10
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Jul 2013 at 09:25 UTC
Updated:
15 Jul 2016 at 06:59 UTC
Jump to comment: Most recent
If uploading different file types like txt, pdf, jpg, or png the result is very different. Txt get uploaded correctly, jpg and png show up but are empty or gray, and pdf don't show up at all.
I included all types ind the $SUPPORTED_FILETYPES array in Docs.php and tried with two different Gdata libraries (Zend and the on in your git).
Is there any way to get this fixed? I just want a possibility for our customers to send large files to our Google Drive. No file browsing or stuff is needed. Just plain upload.
Thanks for your help.
Oh btw. an email notification after an upload would be very sweet.
Comments
Comment #1
brijesh09 commentedHI
you have to add 'application/pdf' mimeType as new switch case in theme_droogle_list_files()
EG:
switch ($file->mimeType) {
' . $file->name . '
';
' . $file->name . '
';
' . $file->name . '
';
' . $file->name . '
';
case 'application/vnd.google-apps.document':
$content .= 'alternateLink . '">
break;
case 'application/vnd.google-apps.spreadsheet':
$content .= 'alternateLink . '">
break;
case 'application/vnd.google-apps.presentation':
$content .= 'alternateLink . '">
break;
case 'application/vnd.google-apps.drawing':
$content .= 'alternateLink . '">
break;
case 'application/pdf':
' . $file->name . '
';
$content .= 'alternateLink . '">
break;
}
}
Comment #2
eugene.ilyin commentedVersion 7.x-2.0-beta10 is pretty old. I think that you should try it with new version.