-
Notifications
You must be signed in to change notification settings - Fork 93
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
file.save response fail #19
Comments
more info about the file: it is a quicktime .mov file of 6.9 MB of size. Tried with a little image and the upload completes successfully, returning the fid and the url in a dictionary. The web server that runs drupal has been tuned and php has been configured to accept POST with such parameters. This problem could possibly be related more on Drupal code that on drupal.ios.kit... |
Is there a max upload size set? |
php has been configured in php.ini with: other tests has been run with little video files of 1~2 second length. the upload works and array of fid/uri is returned from drupal. Additional tests with 3+ second length fails. Error Domain=DIOS-Error Code=1 "Encountered unknown tag br on line 1" UserInfo=0x11fb9d0 {NSLocalizedDescription=Encountered unknown tag br on line 1} recent tests has brought to similar error: Error Domain=DIOS-Error Code=1 "Encountered unknown tag html on line 1" UserInfo=0x11fb9d0 {NSLocalizedDescription=Encountered unknown tag html on line 1} the obvious opinion could be that drupal is responding to the post with a web page. but why I can't print that web page code with this ObjC code? --> in DIOSConnect's runMethod
this code logs, for the video of length > 3 secs Printing out response as ASCII text: è!�> Finally, I would like to report that I've modified DIOSFile's "fileSave" in order to put the fileDict parameters directly in the DIOSConnect's mutableArray "params" and not add them in the "params" for the key "file". |
Can you commit/fork and do a pull request for that change, or post the code her so I can get it to the others. AS for the rest, let me investigate. Ill let you know. :( |
I havnt been able to reproduce this issue, I'm uploading videos that are 50 megs. Can you give me access to your server , or if you're not comfortable with that, give me some more reproducible issues? |
I'm sorry but I cannot give the server access since it's owned by a business company. |
Yeah can you email me what you have for DIOS and ill just do a diff and figure out what you've changed and if its a viable option. Uploading file sizes ~6megs is probably something that happens very little but I would love to attempt to figure out why this isn't working for you. After i see your code ill get back to you. |
This will be fixed in the next released. so I'm leaving it open, but look for 2.1 release of drupal-ios-sdk |
When trying to upload a new file to Drupal with services 6.x 3.x,
the obtained response is not a property list and fails conversion from NSData to NSDictionary
Error Domain=DIOS-Error Code=1 "Encountered unknown tag br on line 1" UserInfo=0x11fb9d0 {NSLocalizedDescription=Encountered unknown tag br on line 1}
trying to print the received response as ASCII NSString:
Printing out response as ASCII text: è!�>�
the DIOSFile and DIOSConnect is original, not modified from github latest version.
the code for the file upload is very similar to the one that can be found on DIOSExample code.
The text was updated successfully, but these errors were encountered: