Ext Js & RESTful file upload

| No TrackBacks

The buweb site must be changed into a Web 2.0 style website. So, I found out the RESTful file upload example, Multiple file upload using RESTful web service (Jersey) , and used EXt Js file upload to build my client upload page.

But must care some details, like "missing } in XML expression" on FireFox. If server side use "Content-type:text/plain", the respone JSON will add <pre><pre> tags on FireFox, so change to "text/html".

Second, the Ext Js file upload example doesn't have submit failure responses, like client invalid, server invalid, connect failure and load failure. The formsubmit-example has complete example code.

Then, usually need to do field validation, use vtype to check file extension format. Ex: ExtJS中表单验证使用自定义vtype示例.

No TrackBacks

TrackBack URL: http://server.everfine.com.tw/blog/mt-tb.cgi/252

March 2010

Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Archives

Powered by Movable Type 4.33-en

About this Entry

This page contains a single entry by philipz published on May 30, 2009 10:23 AM.

Find recent content on the main index or look in the archives to find all content.