Not a limitation at all.

For starters it prevents a whole class of malicious attacks.

Secondly the file is equally useable stored in the datastore as it is
in a filesystem.
Unless a library that uses such file is really poorly written it
shouldn't matter if the
file is stored anywhere. (fetch via url fetch, in the datastore, or a
read only file in the filesystem)
it should work with an io stream than a file.

Rgds

T

On Mar 27, 9:53 am, observer247 <[email protected]> wrote:
> Thanks Jody for the answer !!
>
> >> There's no real reason not to upload into either a blob or the datastore 
> >> though.
>
> That is surely a limitation.
>
> Thanks once again.
>
> On Mar 26, 5:44 pm, Jody Belka <[email protected]> wrote:
>
>
>
> > 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%2Bunsubscrib
> > >  [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