-
Notifications
You must be signed in to change notification settings - Fork 313
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
Upload file - dataFromParameters function #23
Comments
Thanks for reporting this, it was broken 😄 . I just merged the xCode 6.1 branch that had the fix in it. Let me know if that fixes the issue. |
Thanks for the fix! I get a new error from the following function:
HTTPMethod does not have a member named 'rawValue' Same error is found in createRequest function. |
This is probably because you are still using xCode 6. xCode 6.1 was released a few days ago, and they changed the |
I thought it might be a problem with the version but I have already updated. It might be a problem with my machine then. Thank you very much for your support! |
Welcome and thanks again! |
Hi,
I'm getting an error when i'm trying to upload a file using file path.
This is the code i'm running:
Then, from the 'HTTPRequestSerializer' class, from the 'dataFromParameters' function, I get an error in the following line:
mutData.appendData(upload.data!)
which prints: fatal error: unexpectedly found nil while unwrapping an Optional value
I suppose this is happening because the function is expecting a data blob file, which has a different constructor in HTTPUpload class.
The text was updated successfully, but these errors were encountered: