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

brijesh09’s picture

Issue summary: View changes

HI

you have to add 'application/pdf' mimeType as new switch case in theme_droogle_list_files()

EG:

switch ($file->mimeType) {
case 'application/vnd.google-apps.document':
$content .= 'alternateLink . '">

  • ' . $file->name . '
  • ';
    break;
    case 'application/vnd.google-apps.spreadsheet':
    $content .= 'alternateLink . '">
  • ' . $file->name . '
  • ';
    break;
    case 'application/vnd.google-apps.presentation':
    $content .= 'alternateLink . '">
  • ' . $file->name . '
  • ';
    break;
    case 'application/vnd.google-apps.drawing':
    $content .= 'alternateLink . '">
  • ' . $file->name . '
  • ';
    break;

    case 'application/pdf':
    $content .= 'alternateLink . '">

  • ' . $file->name . '
  • ';
    break;
    }
    }

    eugene.ilyin’s picture

    Version 7.x-2.0-beta10 is pretty old. I think that you should try it with new version.