This topic is locked
[SOLVED]

 Shared image location for image entries in database

6/7/2015 6:48:09 AM
PHPRunner General questions
S
snape author

Hello,
I have made 2 apps which use the same databases but have different interfaces.
In both apps one of the list pages should show image thumbnails of images which are uploaded via the add the page.
I assume it should be possible to view the same images in both apps.
The problem is the 'files' folder from one of the apps contains all the images and the second app doesn't see the thumbnails because its' pointing to it's own 'files' folder which is empty.
My question is can I create a new folder outside the two apps on the same server and have them both share it? If this is the case what do I type in the 'edit as' page for the folder location? If it's up one level should it be: '../ImageFolder' as this doesn't seem to work?
Thanks for any help on this.
Spencer

Sergey Kornilov admin 6/9/2015

You can use 'Absolute path' option while specifying upload folder. This way both apps can share the same set of images assuming that they use the same database.

S
snape author 6/10/2015



You can use 'Absolute path' option while specifying upload folder. This way both apps can share the same set of images assuming that they use the same database.


Hello again,
I've tried changing the path to:
http://www.spencercarpenter.co.uk/shapeshifter/RecieptImages
and checking 'Absolute Path' but the page just shows 'image' icons and not the thumbnails.
Is there something I am missing?
Thanks again
Spencer

Sergey Kornilov admin 6/10/2015

Absolute path is not a URL, but a path to images on your server i.e. C:\Inetpub\WWWROOT\website.com\images

S
snape author 6/10/2015



Absolute path is not a URL, but a path to images on your server i.e. C:\Inetpub\WWWROOT\website.com\images


Ah I see, thanks for the help again!

S
snape author 6/10/2015



Ah I see, thanks for the help again!


Sorry just one more question. Does this usually work on virtual servers since there is not a dedicated server?

Sergey Kornilov admin 6/10/2015

Yes, file system is a file system.