這是我修改以後的代碼html
在 android/src/main/java/com/yoloci/fileupload/FileUploadModule.javajava
附加 由於cookie的問題,能夠在java header請求的時候添加cookie react
String responseCookie = connection.getHeaderField("Set-Cookie");
connection.setRequestProperty("Cookie", responseCookie);
參考 :http://www.cnblogs.com/moon-mountain/archive/2012/02/11/2346922.htmlandroid
http://blog.csdn.net/heyu158/article/details/23342533git
https://github.com/comiclee/react-native-fileupload/commit/db154b78d8ebc141a2a2aa1c7876beb2b0f5538fgithub