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

Why keeping full file paths in the tables instead of relatives? #56

Open
manicko opened this issue Nov 7, 2016 · 1 comment
Open

Why keeping full file paths in the tables instead of relatives? #56

manicko opened this issue Nov 7, 2016 · 1 comment

Comments

@manicko
Copy link

manicko commented Nov 7, 2016

At the moment snippet is storing full paths in the table e.g

/home/srv1/site.ru/assets/files/pic.jpg

if i move to the other hosting it will be
/www/srv2/site.ru/assets/files/pic.jpg

so the count of downloads will start from zero. Why not to keep the relative paths in the table?

I mean assets/files/pic.jpg?

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39044453-why-keeping-full-file-paths-in-the-tables-instead-of-relatives?utm_campaign=plugin&utm_content=tracker%2F1480317&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1480317&utm_medium=issues&utm_source=github).
@goldsky
Copy link
Owner

goldsky commented Nov 14, 2016

You can add &mediaSourceId property to the snippet's call.
Eg:

[[!FileDownload?
&mediaSourceId=`1`
&getDir=`assets/downloads`
&browseDirectories=`1`
&directLink=`1`
]]

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