Access to local content not in mySQL

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
davebryan
Posts: 13
Joined: 2015-11-06 16:19

Access to local content not in mySQL

Post by davebryan » 2016-08-22 05:30

My website uses Appgini to search a database containing links to locally stored PDFs that are not in the mySQL database. When I try it on my localhost, everything works fine. When I installed it on a web server, the same links to the local PDFs stored in the same relative folder location on the server, I get a 404 error. I tried all different variations in the link address and none work. I suspect a permission problem, but don't know what it is. Does anyone have any suggestions?
Thanks,
Dave

peebee
AppGini Super Hero
AppGini Super Hero
Posts: 356
Joined: 2013-03-21 04:37

Re: Access to local content not in mySQL

Post by peebee » 2016-08-22 09:07

404 is a "not found" error which suggests the path to your PDF's is incorrect on the web server version - rather than a permissions problem.

Compare the relative URL to a particular PDF document on your local machine to that same document on the web server version. Perhaps even a preceding "/" causing the problem?

What is an example of the URL of the PDF with the 404 error? I presume you have uploaded the same PDF's to the web server and are trying to link to those documents on the web server rather than linking to a local file on your local machine via the web server URL - which is not so straight forward?

davebryan
Posts: 13
Joined: 2015-11-06 16:19

Re: Access to local content not in mySQL

Post by davebryan » 2016-08-22 14:32

PB,
You were right. That was my first assumption, but all variations I tried didn't work. So, with your advice, I went back to look at the links and realized that I had some caps in the directory path that were not in the actual directory name, removed them and it works. I didn't realize that the directory path had to match upper case/lower case.

Thanks for putting me back on the right path (pun intended).
Dave

Post Reply