Closed GoogleCodeExporter closed 8 years ago
can you upload this file through the UI?
Frank
Original comment by fman...@gmail.com
on 14 Apr 2009 at 1:14
Yes. I can.
I investigated the source files of API (documentservice.cs) and found that
formats:
".docx", "xlsx" is not supported. There are only: ".doc", ".xls"
The part of source below. Is it going to be supported the 2007 file format? Is
there
any workarounds to upload files with extensions: ".docx", "xlsx"
static DocumentsService()
{
GDocumentsAllowedTypes = new Hashtable();
GDocumentsAllowedTypes.Add("CSV", "text/csv");
GDocumentsAllowedTypes.Add("TAB", "text/tab-separated-values");
GDocumentsAllowedTypes.Add("TSV", "text/tab-separated-values");
GDocumentsAllowedTypes.Add("TXT", "text/plain");
GDocumentsAllowedTypes.Add("HTML", "text/html");
GDocumentsAllowedTypes.Add("HTM", "text/html");
GDocumentsAllowedTypes.Add("DOC", "application/msword");
GDocumentsAllowedTypes.Add("ODS", "application/x-
vnd.oasis.opendocument.spreadsheet");
GDocumentsAllowedTypes.Add("ODT",
"application/vnd.oasis.opendocument.text");
GDocumentsAllowedTypes.Add("RTF", "application/rtf");
GDocumentsAllowedTypes.Add("SXW", "application/vnd.sun.xml.writer");
GDocumentsAllowedTypes.Add("XLS", "application/vnd.ms-excel");
GDocumentsAllowedTypes.Add("PPT", "application/vnd.ms-powerpoint");
GDocumentsAllowedTypes.Add("PPS", "application/vnd.ms-powerpoint");
GDocumentsAllowedTypes.Add("PDF", "application/pdf");
}
Original comment by DenisSol...@gmail.com
on 14 Apr 2009 at 1:18
Yeah, i got that list from somewhere, do not recall from where though. I am
going to add those 2 extensions to
the list, if you need this now, just add them and recompile, or sync to the
depot shortly. I only changed the
source code, so you would have to build the DLL yourself.
Original comment by fman...@gmail.com
on 14 Apr 2009 at 1:32
Thanks. I'll try and update you with result.
Original comment by DenisSol...@gmail.com
on 14 Apr 2009 at 1:34
I added to required extension to map. There is no anymore error "wrong format".
However I got other error "Unable to convert document". It looks that still
wrong
request is being built.
The same document I'm able upload via UI.
Original comment by DenisSol...@gmail.com
on 14 Apr 2009 at 6:34
Original issue reported on code.google.com by
DenisSol...@gmail.com
on 12 Apr 2009 at 11:49