Skip to content
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

FileAdapter Development Question #1285

Closed
mcclaskiem opened this issue Mar 30, 2016 · 3 comments
Closed

FileAdapter Development Question #1285

mcclaskiem opened this issue Mar 30, 2016 · 3 comments

Comments

@mcclaskiem
Copy link

FileAdapter Development

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.

@flovilmart
Copy link
Contributor

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
Copy link
Author

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?

@flovilmart
Copy link
Contributor

Can we move he discussion to the conformance tests as it may help other users and it's not part of this repository anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants