You can't upload into a directory, no. There's no real reason not to upload
into either a blob or the datastore though.

Regarding xlrd, if you look carefully at the api docs or source code, you'll
notice that you can pass a "file_contents" parameter instead of a
"filename". It then just uses that directly instead of reading from a file.
So you can pull in the file contents from the datastore, blobstore, or
urlfetch, and then just pass it directly into xlrd.


On 26 March 2010 19:19, observer247 <[email protected]> wrote:

> These two are related.
>
> I want to provide an interface where the user can upload a excel file
> and I want to parse it using open_workbook (xlrd). So an answer to any
> of the two questions will solve my problem :)
>
> 1) Does google app engine allow uploading a file into the directory ?
> I do not want to store data in a blob. I want to upload the file into
> my directory. This is because I want to open it as a file later.
>
> 2) Assuming I cannot do 1. I can provide a php upload of file on some
> other server. On app engine, I will ask the user to provide the
> filename and urlfetch will get the file. But open_workbook expects a
> file name. How do I use xlrd with a data buffer or a blob.
>
> Thanks for reading !
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" 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-appengine?hl=en.

Reply via email to