Thanks Eric.

Does it support all other file formats on the following list except PDF?

            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");

Thanks,

Jack



On Sat, Dec 13, 2008 at 5:38 PM, Eric (Google) <[email protected]> wrote:

>
> While Google Docs supports PDF upload, this is still
> an outstanding feature request for the API:
> http://code.google.com/p/gdata-issues/issues/detail?id=591
>
> It looks like PDF was prematurely added to the .NET client :(
>
> The supported filetypes are:
> http://code.google.com/apis/documents/faq.html#WhatKindOfFilesCanIUpload
>
> Eric
>
> On Dec 13, 1:59 pm, "[email protected]" <[email protected]>
> wrote:
>  > Hi,
> >
> > I am trying to upload a PDF file with Google Docs API. But I got error
> > saying it is a wrong format.
> >
> > Here is a list of format from Google's DocumentsService class. And PDF
> > is on the list (although it is on the bottom : ) ).
> >
> >             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");
> >
> > Which format does Google Docs support?
> >
> > Thanks,
> >
> > Jack
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Docs Data APIs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Docs-Data-APIs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to