java - Html form submit both datastore entity and blobstore through app engine -


i've got jsp file uploads file. added name , email form. want able keep track of blob uploaded app engine blobstore person. have tie datastore take contact info? how done? can filter blob viewer type, filename, size, , creation time? can add more entries can regular datastore?

i want submit both datastore information , file @ same time. can multiple action commands listed in html form. know little html. add datastore service action.

<form action="<%= blobstoreservice.createuploadurl("/upload") %>" method="post" enctype="multipart/form-data">  first name: <input type="text" name="firstname"><br> last name: <input type="text" name="lastname"><br> email : <input type="text" name="email"><br> email again: <input type="text" name="emailagain"><br>       <input type="text" name="foo">       <input type="file" name="myfile">     <input type="submit" value="submit"> </form> 

your upload form code seems correct, still need code upload handler codes in separate file.

and should store firstname, lastname, email, , blobkey datastore.

complete documentation , example available here: https://developers.google.com/appengine/docs/java/blobstore/


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -