Closed (won't fix)
Project:
RESTful Web Services
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2014 at 18:32 UTC
Updated:
28 Apr 2015 at 20:53 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
lokapujyaComment #2
nicxvan commentedI think I'm almost there, I did have one success, but I didn't catch it in time: I've changed the image function in: https://www.drupal.org/node/1819594 to the following ( I will create a patch when I get it closer )
With this
##############@@ Array sending info:
I think the sending array is correct. I believe the problem is with the array push and when I output the array for the images.
Comment #3
nicxvan commentedWith the above settings I get the following errors: I am pretty sure it's because I have the watchdog statements malformed, or because I am out putting the array.
Comment #4
nicxvan commentedWoohoo! Actually removing the watchdog statement that output the array fixed it, it's now working! Now just have to create tests and roll the patch.
Comment #5
nicxvan commentedWorking function:
Comment #6
nicxvan commentedI am going to redo the patch on issue: https://www.drupal.org/node/1819594 since it shouldn't break even if your patch isn't included. I'll try to write the tests too.
Comment #7
btopro commentednot perfect but serviceable. made as a real patch for those using this til #1819594: PUT/update fails with 406 on entity/node that contains an image/file is resolved
Comment #8
lokapujyaComment #9
nicxvan commentedTest it.
Comment #11
mariano.barcia commentedI've started testing the patch contributed here, and ended up building a module.
Please see #2452759: [D7] RESTful web services support for files and images.
Reviewing and testing welcome, thank you in advance.
Comment #12
mariano.barcia commentedClosing this issue, as there is now a new module for this.
https://www.drupal.org/project/restws_file
Please refer to it, thank you.