You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently writing an adapter for RackSpace Cloud files for a project and was wondering if we can simply pass a buffer through after createFile is called instead making another request with getFileData in order to return a buffer.
So I am trying to save an object in classHandle which handles the file upload fine, then it is trying a GET with a random image name locally which is returning a 404 and ultimately causing a bad request on the post to save the board. Do I need to change getFileLocation to return the rackspace URL? From my understanding the getFileData method makes a request based on whatever SDK you are using, so why is there a local 404 in the process?
Activity
flovilmart commentedon Mar 30, 2016
You can do pretty much what you want in the adapter, as long as the test passes what's described in https://github.com/parse-server-modules/parse-server-conformance-tests
See here https://github.com/parse-server-modules/parse-server-fs-adapter/blob/master/spec/test.spec.js for an example
mcclaskiem commentedon Mar 30, 2016
So I am trying to save an object in
classHandlewhich handles the file upload fine, then it is trying aGETwith a random image name locally which is returning a 404 and ultimately causing a bad request on the post to save the board. Do I need to changegetFileLocationto return the rackspace URL? From my understanding thegetFileDatamethod makes a request based on whatever SDK you are using, so why is there a local 404 in the process?flovilmart commentedon Mar 30, 2016
Can we move he discussion to the conformance tests as it may help other users and it's not part of this repository anymore?