Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum https://www.tinywebgallery.com/forum/ |
|
Photos are in the server no need to upload them https://www.tinywebgallery.com/forum/viewtopic.php?f=4&t=3416 |
Page 1 of 1 |
Author: | ujuhani [ 17. Sep 2012, 07:35 ] |
Post subject: | Photos are in the server no need to upload them |
I am very new to TWG, just installed it last night. I read in one post that I can point TWG to existing directory without copying the whole directory and this feature is what I am looking for since I have a huge number of pictures stored in one folder and I don't want to duplicate them in my server. My question might be silly but how can I do that? how can I point TWG to an existing directory without copying or uploading all the photos in the directory to TWG Thank you in advance |
Author: | TinyWebGallery [ 18. Sep 2012, 11:26 ] |
Post subject: | Re: Photos are in the server no need to upload them |
Change the $basedir variable to your directory. The path has to relative to the TWG directory. Best, Michael |
Author: | ujuhani [ 20. Sep 2012, 17:20 ] |
Post subject: | Re: Photos are in the server no need to upload them |
I set $basedir in config.php to: /data/Pictures data/Pictures data/Pictures/ /data/Pictures where my pictures are but in all the cases TWG couldn't find the directory keep saying it is not exist. still I don't know what is the problem ..... hope it is not permission problem since I couldn't change the ownerhip of /data since it is NTFS filesystem |
Author: | TinyWebGallery [ 20. Sep 2012, 17:41 ] |
Post subject: | Re: Photos are in the server no need to upload them |
is data below twg? if not "relative" -> means e.g. ../../data/Pictures Best, Michael |
Author: | ujuhani [ 20. Sep 2012, 19:49 ] |
Post subject: | Re: Photos are in the server no need to upload them |
yes data is not belong to TWG so I wrote: $basedir = '../../data/Pictures'; The error in debug: 09.20.2012 19:56:51 (en) - ERROR 2 in /var/www/twg/inc/filefunctions.inc.php, line 2515: opendir(__/__/__/data/Pictures): failed to open dir: No such file or directory --------------- and when I wrote : $basedir = '../../../data/Pictures'; The debug was: 09.20.2012 20:05:10 (en) - ERROR 2 in /var/www/twg/inc/filefunctions.inc.php, line 2515: opendir(__/__/__/__/data/Pictures): failed to open dir: Permission denied Still not working |
Author: | TinyWebGallery [ 22. Sep 2012, 23:41 ] |
Post subject: | Re: Photos are in the server no need to upload them |
how does your folder structure look like? - Michael |
Page 1 of 1 | All times are UTC + 1 hour [ DST ] |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |