I'm able to upload a .doc file from the Droogle page

But when I try to upload a .docx the confirmation message displays success but the file is not uploaded

I can upload a .docx directly in Google Docs and then it displays on the Droogle page

I'm in local dev with XAMPP - I enabled the ssl extension in php.ini

Comments

decibel.places’s picture

oh yeah, I'm using the Global (non OG) settings

decibel.places’s picture

These messages in dblog should help;

for my purposes I can just use the .doc extension

Type	DROOGLE
Date	Thursday, May 3, 2012 - 1:39pm
User	[username]
Location	[base url]/droogle
Referrer	[base url]/droogle
Message	Error: Expected response code 200, got 415 Content-Type application/x-www-form-urlencoded is not a valid input type.
Severity	notice
Hostname	127.0.0.1
Operations	
Type	php
Date	Thursday, May 3, 2012 - 1:45pm
User	[username]
Location	[base url]/droogle
Referrer	[base url]/droogle
Message	Warning: Invalid argument supplied for foreach() in file_save_upload() (line 631 of C:\[base directory]\includes\file.inc).
Severity	error
Hostname	127.0.0.1
Operations	
Barnettech’s picture

Annoyingly I agree you have to edit Droogle/Zend/Gdata/Docs.php and add the filetypes that are allowed for upload.

Here is my current list.

private static $SUPPORTED_FILETYPES = array(
      'PDF'=>'application/pdf',
      'JPG'=>'image/jpeg',
      'PNG'=>'image/png',
      'GIF'=>'image/gif',
      'TXT'=>'text/plain',
      'CSV'=>'text/csv',
      'TSV'=>'text/tab-separated-values',
      'TAB'=>'text/tab-separated-values',
      'HTML'=>'text/html',
      'HTM'=>'text/html',
      'DOC'=>'application/msword',
      'DOCX'=>'application/msword',
      'ODS'=>'application/vnd.oasis.opendocument.spreadsheet',
      'ODT'=>'application/vnd.oasis.opendocument.text',
      'RTF'=>'application/rtf',
      'SXW'=>'application/vnd.sun.xml.writer',
      'XLS'=>'application/vnd.ms-excel',
      'XLSX'=>'application/vnd.ms-excel',
      'PPT'=>'application/vnd.ms-powerpoint',
      'PPS'=>'application/vnd.ms-powerpoint');

James (Barnettech)
http://www.barnettech.com

Barnettech’s picture

Status: Active » Closed (fixed)

I will add this to the documentation when I can find a few minutes.

decibel.places’s picture

One more thing: most modules are adding their external libraries to sites/all/libraries
Maybe that route will make it easier to override the defaults in the Zend library?