Replies: 4 comments 2 replies
-
No, SQLPage will not serve files outside of its web root directory (which is configurable). If you need to reference images that are outside of the root directory, you can make a simple symbolic link from outside the root directory to a destination inside it. ln -s my_images_folder my_sqlpage_root/my_images_alias and than in a sql file SELECT
'hero' as component,
'Look at my image !' as title,
'/my_images_alias/my_nice_picture.jpg' as image, |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks for your answer.
Yes, i thought about symbolic links and i just discover we can use them in
windows...i try this way
Do you have examples of webroot configuration ?
Thanks you
Le sam. 7 oct. 2023, 01:42, Ophir LOJKINE ***@***.***> a
écrit :
… No, SQLPage will not serve files outside of its web root directory (which
is configurable
<https://github.com/lovasoa/SQLpage/blob/main/configuration.md>).
If you need to reference images that are outside of the root directory,
you can make a simple symbolic link from outside the root directory to a
destination inside it.
ln -s my_images_folder my_sqlpage_root/my_images_alias
and than in a sql file
SELECT
'hero' as component,
'Look at my image !' as title,
'/my_images_alias/my_nice_picture.jpg' as image,
—
Reply to this email directly, view it on GitHub
<#96 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOYEXY7ZHVJUHS4U5AJQFDDX6CJNTAVCNFSM6AAAAAA5WBS72GVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM3TEMJUGI4TG>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
1 reply
-
Hello,
i tried using web_root, but if i use \ for the path on windows, it creates a mistake and sqlpage is not working
So i write the path just like in linux, ie :
` "web_root":"C:/Users/florent/Documents/04-Publications_PAS_Recherche/00_test_sqlpage/donnee/enregistrement/sqlpage/"`
but, if i ask for an image in
`C:/Users/florent/Documents/04-Publications_PAS_Recherche/00_test_sqlpage/donnee/image`
it does not work.
Another try :
`
"web_root":"/00_test_sqlpage/donnee/enregistrement/sqlpage/"
`
but not working.
It works of course with symbolic link...
Thank you
|
Beta Was this translation helpful? Give feedback.
1 reply
-
great !
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is it possible to view an image that is outside sqlpage's directory and not on the web ?
It will be usefull to list pictures just by giving the local adress.
Thanks
Beta Was this translation helpful? Give feedback.
All reactions