Skip to content
This repository has been archived by the owner on Mar 14, 2019. It is now read-only.

FS.HTTP.setBaseUrl('/files') #247

Closed
aaronjudd opened this issue Apr 3, 2014 · 3 comments
Closed

FS.HTTP.setBaseUrl('/files') #247

aaronjudd opened this issue Apr 3, 2014 · 3 comments

Comments

@aaronjudd
Copy link
Contributor

Issue mentioned in

#206

@aldeed (after your comment) I just added (after mrt update)

FS.HTTP.setBaseUrl('/files')

I now get (from a fresh reset):

Error: HTTP method "/files/files/:collectionName/:id/:filename" is already registered
at packages/http-methods/http.methods.server.api.js:211

and validating with some other prefixes

Error: HTTP method "/media/files/:collectionName/:id/:filename" is already registered
at packages/http-methods/http.methods.server.api.js:211
@aldeed
Copy link
Contributor

aldeed commented Apr 3, 2014

setBaseUrl must be called in Meteor.startup function. Sorry, I will update the docs. I will also try to replace this error with a better error informing you of this.

@aldeed aldeed closed this as completed Apr 3, 2014
@aldeed
Copy link
Contributor

aldeed commented Apr 3, 2014

@aaronjudd, I lied. I was able to change it so that you can call setBaseUrl either outside of Meteor.startup or inside. Everything should work now.

@aaronjudd
Copy link
Contributor Author

Looks good, working perfectly now.

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

No branches or pull requests

2 participants