Is arbitrary file upload is working?

117 views
Skip to first unread message

Mikhail Goncharov

unread,
May 10, 2011, 7:09:32 AM5/10/11
to google-docum...@googlegroups.com
According to blogspot post we'll be able to upload any file with google API to personal google docs.
I've tried this up but get 403 response if I add ?convert=false to my request.

Should I wait for a while or do I implement something wrong?

VHanded

unread,
May 11, 2011, 1:01:02 AM5/11/11
to google-docum...@googlegroups.com
I am facing the same problem, this is the reply I got.


Hope Google faster solve this issue, again.

Uladzimir Kazakevich

unread,
May 11, 2011, 2:03:38 AM5/11/11
to google-docum...@googlegroups.com
I've faced with the same issue. I get 403 Forbidden in response. So we have to wait :)

Vic Fryzel

unread,
May 11, 2011, 2:46:16 AM5/11/11
to google-docum...@googlegroups.com
Hey,

You guys _must_ use resumable upload in order for this to work.  Can you retry using resumable upload?

I've confirmed it working from multiple public accounts using resumable.

Thanks,
-Vic

Mikhail Goncharov

unread,
May 11, 2011, 3:23:57 AM5/11/11
to google-docum...@googlegroups.com
Yes, I've used resumable upload for this:

int CHUNK_SIZE = 1;

ClientLoginAuthenticator cla = new ClientLoginAuthenticator("uploader", ServiceNames.Documents, "username", "password");

// Set up resumable uploader and notifications
ResumableUploader ru = new ResumableUploader(CHUNK_SIZE);
ru
.AsyncOperationCompleted += new AsyncOperationCompletedEventHandler(ru_AsyncOperationCompleted);
ru
.AsyncOperationProgress += new AsyncOperationProgressEventHandler(ru_AsyncOperationProgress);

// Set metadata for our upload.
Document entry = new Document();
entry
.Title = "test file";
entry
.MediaSource = new MediaFileSource(fileName, "application/msword");

// Add the upload uri to document entry.
Uri createUploadUrl = new Uri("https://docs.google.com/feeds/upload/create-session/default/private/full?convert=false");
AtomLink link = new AtomLink(createUploadUrl.AbsoluteUri);
link
.Rel = ResumableUploader.CreateMediaRelation;
entry
.DocumentEntry.Links.Add(link);

ru
.InsertAsync(cla, entry.DocumentEntry, new object());
(I've took this code from documentation examples)
Somewhere in the middle I've got 403 error. Am I doing something wrong?

Terence Pua

unread,
May 11, 2011, 3:26:32 AM5/11/11
to google-docum...@googlegroups.com
I can confirm that we are also getting 403s on personal gdocs and gapps docs accounts even when using resumable upload.

Vic Fryzel

unread,
May 11, 2011, 3:27:34 AM5/11/11
to google-docum...@googlegroups.com
Okay thanks for the reports, I'll take a look.

-Vic

VHanded

unread,
May 11, 2011, 3:28:13 AM5/11/11
to google-docum...@googlegroups.com
Yes, me too. 

Vic Fryzel

unread,
May 11, 2011, 3:48:28 AM5/11/11
to google-docum...@googlegroups.com
We checked some of your guys' accounts.  We are currently not rolled out to all users (as this is a rolling release.)  We're expecting to have 100% of users on the service in the next few days.

Thanks,
-Vic



On Wed, May 11, 2011 at 12:28 AM, VHanded <v.ha...@gmail.com> wrote:
Yes, me too. 

Ian Gillett

unread,
May 11, 2011, 4:17:17 AM5/11/11
to google-docum...@googlegroups.com, Vic Fryzel
If we have to use resumable uploads can you please reply regarding the outstanding request at the link below:


Currently there is no way to handle resumable uploads with Java and App Engine...

Thanks,
Ian.

Roy ntebi

unread,
May 11, 2011, 4:41:37 AM5/11/11
to Google Documents List API
Please also fix collections access with resumable uploads.

Currently resumable uploads always go to root folder (collections).
This is ok for youtube, not documents.

Thanks
Roy



On May 11, 6:17 pm, Ian Gillett <iangillet...@gmail.com> wrote:
> If we have to use resumable uploads can you please reply regarding the
> outstanding request at the link below:
>
> http://groups.google.com/group/google-documents-list-api/browse_threa...
>
> <http://groups.google.com/group/google-documents-list-api/browse_threa...>Currently

Uladzimir Kazakevich

unread,
May 11, 2011, 4:23:00 PM5/11/11
to google-docum...@googlegroups.com
As far as I understand there should be upload_any docs feature in the metadata response. I'm looking forward to using upload_any feature.

Actually I don't have such feature:
  <?xml version="1.0" encoding="UTF-8" ?> 
  <entry xmlns="http://www.w3.org/2005/Atom" xmlns:docs="http://schemas.google.com/docs/2007" xmlns:gd="http://schemas.google.com/g/2005" gd:etag="W/"1234567890."">
  <updated>2011-05-11T20:03:45.469Z</updated> 
  <title>Document List User Metadata</title> 
  <link rel="self" type="application/atom+xml" href="https://docs.google.com/feeds/metadata/l.kwull.l%40gmail.com" /> 
  <author>
  <name>l.kwull.l</name> 
  <email>l.kw...@gmail.com</email> 
  </author>
  <gd:quotaBytesTotal>22548578304</gd:quotaBytesTotal> 
  <gd:quotaBytesUsed>3156662398</gd:quotaBytesUsed> 
  <docs:quotaBytesUsedInTrash>663746</docs:quotaBytesUsedInTrash> 
  <docs:importFormat source="text/plain" target="document" /> 
  <docs:importFormat source="application/x-vnd.oasis.opendocument.spreadsheet" target="spreadsheet" /> 
  <docs:importFormat source="application/msword" target="document" /> 
  <docs:importFormat source="application/vnd.oasis.opendocument.text" target="document" /> 
  <docs:importFormat source="application/vnd.sun.xml.writer" target="document" /> 
  <docs:importFormat source="application/vnd.ms-excel" target="spreadsheet" /> 
  <docs:importFormat source="image/bmp" target="document" /> 
  <docs:importFormat source="application/pdf" target="document" /> 
  <docs:importFormat source="application/rtf" target="document" /> 
  <docs:importFormat source="text/csv" target="spreadsheet" /> 
  <docs:importFormat source="application/x-msmetafile" target="drawing" /> 
  <docs:importFormat source="application/vnd.ms-powerpoint" target="presentation" /> 
  <docs:importFormat source="text/html" target="document" /> 
  <docs:importFormat source="image/gif" target="document" /> 
  <docs:importFormat source="image/jpeg" target="document" /> 
  <docs:importFormat source="text/tab-separated-values" target="spreadsheet" /> 
  <docs:importFormat source="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" target="spreadsheet" /> 
  <docs:importFormat source="application/vnd.openxmlformats-officedocument.wordprocessingml.document" target="document" /> 
  <docs:importFormat source="image/png" target="document" /> 
  <docs:exportFormat source="drawing" target="application/pdf" /> 
  <docs:exportFormat source="presentation" target="application/pdf" /> 
  <docs:exportFormat source="document" target="text/plain" /> 
  <docs:exportFormat source="presentation" target="application/vnd.ms-powerpoint" /> 
  <docs:exportFormat source="spreadsheet" target="application/x-vnd.oasis.opendocument.spreadsheet" /> 
  <docs:exportFormat source="presentation" target="text/plain" /> 
  <docs:exportFormat source="document" target="text/html" /> 
  <docs:exportFormat source="document" target="application/rtf" /> 
  <docs:exportFormat source="document" target="text/rtf" /> 
  <docs:exportFormat source="drawing" target="image/svg+xml" /> 
  <docs:exportFormat source="drawing" target="image/png" /> 
  <docs:exportFormat source="drawing" target="image/jpeg" /> 
  <docs:exportFormat source="spreadsheet" target="application/pdf" /> 
  <docs:exportFormat source="document" target="application/pdf" /> 
  <docs:exportFormat source="document" target="application/vnd.oasis.opendocument.text" /> 
  <docs:exportFormat source="document" target="application/msword" /> 
  <docs:exportFormat source="spreadsheet" target="application/vnd.ms-excel" /> 
  <docs:feature>
  <docs:featureName>ocr</docs:featureName> 
  </docs:feature>
  <docs:feature>
  <docs:featureName>translation</docs:featureName> 
  <docs:featureRate>0.5</docs:featureRate> 
  </docs:feature>
  <docs:maxUploadSize kind="document">512000</docs:maxUploadSize> 
  <docs:maxUploadSize kind="spreadsheet">1048576</docs:maxUploadSize> 
  <docs:maxUploadSize kind="presentation">10485760</docs:maxUploadSize> 
  <docs:maxUploadSize kind="drawing">2097152</docs:maxUploadSize> 
  <docs:maxUploadSize kind="pdf">1073741824</docs:maxUploadSize> 
  <docs:maxUploadSize kind="file">1073741824</docs:maxUploadSize> 
  </entry>
Reply all
Reply to author
Forward
0 new messages