Meteor-files: Feature Request: Get relative path of the file without the domain part of the url

Created on 27 Jun 2018  路  4Comments  路  Source: veliovgroup/Meteor-Files

I have a specific case where I need to just pass around the path, and now I have to do some annoying string operations to make sure that I get the correct url after I user item.link()

Is this something that already exists?

enhancement

Most helpful comment

This is great thank you!

All 4 comments

Related: currently the download root is based on meteor's environment variables. I have a case where I want to derive it from window.location.

Hey guys @schlaegerz @aureooms ,
Hope it isn't too late, this feature have been implemented, as third argument for fileURL helper, FilesCollection#link() method, and FileCursor#link() method in v1.10.0.

Let me know wdyt, ok?

This is great thank you!

@schlaegerz thank you for checking, and thank you for contribution. Closing as solved/implemented.
Feel free to reopen it in case if the issue is still persists on your end.

Please, support this project by:

Was this page helpful?
0 / 5 - 0 ratings