近來(lái)項(xiàng)目需要學(xué)習(xí)起flex,利用FileReference進(jìn)行上傳文件的試驗(yàn)。結(jié)果總是報(bào)告#2038錯(cuò)誤。
查了很長(zhǎng)時(shí)間,總算在這找到了不少的提示
IO Error #2038
http://swfupload.org/forum/generaldiscussion/92
其中一段是這樣說(shuō)的

Flash IO Errors are not very helpful. The same couple of error numbers are returned for just about everything.


Here are some common issues that cause these error codes:


- Invalid URL

- Server max post size or max upload size exceeded

- Server unexpectedly terminates the connection

- Zero byte file uploaded

- Basic Authentication failed


To debug these issues I first verify that my upload is working using a standard HTML upload form pointing at my upload.php
說(shuō)Flash的IO錯(cuò)誤提示不是非常有用。幾個(gè)錯(cuò)誤碼就包含所有的錯(cuò)誤信息。跟著列了IO錯(cuò)誤通常包含的錯(cuò)誤,并建議我們先用html原上傳方式確保上傳的頁(yè)面沒(méi)有錯(cuò)誤。
結(jié)果真是我的up.aspx有錯(cuò)誤引起的。