-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RNFS.uploadFiles upload raw not multipart #749
Comments
Can you show me your js code? It should have Content-Disposition if RNFS.uploadFiles.files have a valid filepath. |
sure @hank121314, here it is:
|
OK! Can you also show me how the getPath function works? |
@jsina @itinance I can confirm that uploadFiles on ios is broken for this library and seems to produce a malformed request. Applying your PR fixed the issue for me and my Laravel server was finally able to detect the files. Thanks to both of you for bringing this up. |
Fix for issue #749: RNFS.uploadFiles upload raw not multipart
Thanks @IvanCaceres for your feedback! @scottewart's PR is merged. |
btw I've got error yet, here is my code:
and here is the error log:
|
I've tried to upload file from RNFS from iPad air2, but when I log it out from
nc -l
I see that there is noContent-Disposition
andContent-Type
, in fact it seems to be raw instead of multipart.I'm using
"react-native-fs": "^2.13.3",
and this is my react-native info:The text was updated successfully, but these errors were encountered: