Chapter 4: Data Formats 145
PART I
A network trace of the example running in Firefox 2 is found in Figure 4-5.
Someday it is likely that a cleaner solution for handling file uploads with XHRs will be
created which will be more cross-browser friendly and more secure. Underneath though, the
data will be handled as we described—let’s just hope we won’t have to encode it ourselves!
FIGURE 4-5 File upload data via an XHR in Firefox