gmail use a trick with a hidden flash uploader, because the default file upload of browser is awful, and very difficult to style.
see YUI uploader - it is the same idea NM On Sun, May 30, 2010 at 5:49 AM, Vishal Singh <[email protected]> wrote: > It will be good to have a official Java Uploader. > > On May 18, 10:19 pm, "Ikai L (Google)" <[email protected]> wrote: > > Also, I should mention that in general, use HTTP POST for anything > > destructive. An HTTP GET should not change data. It's too easy for a user > to > > reload a page without a warning or a web crawler to accidentally invoke > some > > action. > > > > > > > > > > > > On Tue, May 18, 2010 at 8:59 AM, Erich <[email protected]> wrote: > > > Thanks for the tips Ikai! I'll try stuffing the parameters into a post > > > and I'll make it a servlet instead. > > > > > When I've made the changes I'll post my work for others to inspect and > > > use as they wish. > > > > > Thanks, > > > Erich > > > > > On May 17, 2:04 pm, "Ikai L (Google)" <[email protected]> wrote: > > > > Use a POST - the 2000 character limit is there because some browsers > > > can't > > > > handle URLs that long. It might also be easier to write your code in > a > > > > servlet and not a JSP. Can you post it for people to look at? > > > > > > On Sun, May 16, 2010 at 2:11 PM, Erich <[email protected]> > wrote: > > > > > Hi All. > > > > > > > I'm completely illiterate in Python, so I've created a workaround > in > > > > > Java to upload Java Object to the datastore. > > > > > > > I have a deployed JSP which receives data and uses reflection and > > > > > various magic to take the incoming URL, create the objects > dynamically > > > > > and add them to the store. I've built my uploader and receiver to > take > > > > > advantage of bulk operations to save URL and datastore calls. > > > > > > > There are some serious drawbacks to this method: > > > > > 1 - The maximum URL length before a 414 error is 2000. This really > > > > > limits how many objects can be passed per URL. > > > > > 2 - I haven't figure out a way to do this using securely. (without > > > > > exposing the JSP publicly) > > > > > > > The good things about it: > > > > > 1 - All Java (no installing a second google app program and mucking > > > > > around in Python) > > > > > 2 - No need to create intermediate files on your system. Plain > Object - > > > > > > Datastore > > > > > > > I would like to improve this if possible. Does anyone know how the > > > > > python uploader works? Is a special URL or connection I can make to > > > > > pass more data or do it securely? > > > > > > > Thanks, > > > > > Erich > > > > > > > -- > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "Google App Engine for Java" group. > > > > > To post to this group, send email to > > > > > [email protected]. > > > > > To unsubscribe from this group, send email to > > > > > [email protected]<google-appengine-java%[email protected]><google-appengine-java%2B > [email protected]> > > > <google-appengine-java%[email protected]<google-appengine-java%[email protected]><google-appengine-java > %[email protected]> > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/google-appengine-java?hl=en. > > > > > > -- > > > > Ikai Lan > > > > Developer Relations, Google App Engine > > > > Twitter:http://twitter.com/ikai > > > > Delicious:http://delicious.com/ikailan > > > > > > ---------------- > > > > Google App Engine links: > > > > Blog:http://googleappengine.blogspot.com > > > > Twitter:http://twitter.com/app_engine > > > > Reddit:http://www.reddit.com/r/appengine > > > > > > -- > > > > You received this message because you are subscribed to the Google > Groups > > > "Google App Engine for Java" group. > > > > To post to this group, send email to > > > [email protected]. > > > > To unsubscribe from this group, send email to > > > [email protected]<google-appengine-java%[email protected]><google-appengine-java%2B > [email protected]> > > > . > > > > For more options, visit this group athttp:// > > > groups.google.com/group/google-appengine-java?hl=en. > > > > > -- > > > You received this message because you are subscribed to the Google > Groups > > > "Google App Engine for Java" group. > > > To post to this group, send email to > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]<google-appengine-java%[email protected]><google-appengine-java%2B > [email protected]> > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine-java?hl=en. > > > > -- > > Ikai Lan > > Developer Relations, Google App Engine > > Twitter:http://twitter.com/ikai > > Delicious:http://delicious.com/ikailan > > > > ---------------- > > Google App Engine links: > > Blog:http://googleappengine.blogspot.com > > Twitter:http://twitter.com/app_engine > > Reddit:http://www.reddit.com/r/appengine > > > > -- > > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > > To post to this group, send email to > [email protected]. > > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > > For more options, visit this group athttp:// > groups.google.com/group/google-appengine-java?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-appengine-java%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- Nicolás Meléndez Java Software Developer 1) Google App Engine works: 1.a) http://www.clasificad.com.ar (Local free classifieds for housing, sale, services, local community, curses,jobs, and events - GAE/J + Wicket + YUI) 1.b) http://www.chessk.com (Massive multiplayer chess online GAE/J + Applets + Wicket) 2) Linkedin: http://ar.linkedin.com/in/nicolasmelendez -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" 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-java?hl=en.
