开发者

blobstore upload code not working

<body>
    <form action="<%= blobstoreService.createUploadUrl("/upload") %>" 
          method="post" 
         enctype="multipart/form-data"
    >
        <input type="file" name="myFile">
        <input type="submit" value="Submit">
    </form>
</body>

the above code throws a java.la开发者_如何转开发ng.NoSuchMethodError on compilation.I can't understand and what is blobstoreService in the above code ?


You are missing the header

<%@ page import="com.google.appengine.api.blobstore.BlobstoreServiceFactory" %> <%@ page import="com.google.appengine.api.blobstore.BlobstoreService" %>

<% BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService(); %>

Upload Test " method="post" enctype="multipart/form-data">

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜