Jump to content

Edit History

Thommen

Thommen

I don't quite understand what the problem is. I moved from PS 1.7 to PS 8.1, and I had an image and a PDF placed in the /upload directory. For these files I had a page where the image gallery and links to the PDF were placed.

It stopped working for me i.e. not being logged in I could not see the graphics and the links to the PDF did not respond. I moved the /upload directory to /img/cms/upload. I replaced the links, everything started to work smoothly even will not be logged in, but the PDF files did not open (Chrome browsers). Firefox opened PDF.

Eventually (and this is strange) to open PDF I had to rewrite the page. So, I uploaded the graphics and PDF to the /img/cms/ directory (not the /img/cms/upload directory because then the PDF opening didn't work) via the file manager in PS (not via FTP|SSH). Then I had to attach the PDF to the graphics.

I could afford to do this because the gallery consisted of 8 graphics.

 

Edit

I've tracked down what's messing with my installation.

PS generates .htaccess, and in it we have an entry:
 

RewriteRule ^upload/.+$ %{ENV:REWRITEBASE}index.php [QSA,L].

Also added is /upload/.htaccess (to make it work for this directory)

<IfModule mod_headers.c>
    <FilesMatch "\.pdf$">
      Header set Content-Type "application/pdf"
      Header set Content-Disposition "inline"
    </FilesMatch>
</IfModule>

 

Thommen

Thommen

I don't quite understand what the problem is. I moved from PS 1.7 to PS 8.1, and I had an image and a PDF placed in the /upload directory. For these files I had a page where the image gallery and links to the PDF were placed.

It stopped working for me i.e. not being logged in I could not see the graphics and the links to the PDF did not respond. I moved the /upload directory to /img/cms/upload. I replaced the links, everything started to work smoothly even will not be logged in, but the PDF files did not open (Chrome browsers). Firefox opened PDF.

Eventually (and this is strange) to open PDF I had to rewrite the page. So, I uploaded the graphics and PDF to the /img/cms/ directory (not the /img/cms/upload directory because then the PDF opening didn't work) via the file manager in PS (not via FTP|SSH). Then I had to attach the PDF to the graphics.

I could afford to do this because the gallery consisted of 8 graphics.

 

Edit

I've tracked down what's messing with my installation.

PS generates .htaccess, and in it we have an entry:
 

RewriteRule ^upload/.+$ %{ENV:REWRITEBASE}index.php [QSA,L].

 

Thommen

Thommen

I don't quite understand what the problem is. I moved from PS 1.7 to PS 8.1, and I had an image and a PDF placed in the /upload directory. For these files I had a page where the image gallery and links to the PDF were placed.

It stopped working for me i.e. not being logged in I could not see the graphics and the links to the PDF did not respond. I moved the /upload directory to /img/cms/upload. I replaced the links, everything started to work smoothly even will not be logged in, but the PDF files did not open (Chrome browsers). Firefox opened PDF.

Eventually (and this is strange) to open PDF I had to rewrite the page. So, I uploaded the graphics and PDF to the /img/cms/ directory (not the /img/cms/upload directory because then the PDF opening didn't work) via the file manager in PS (not via FTP|SSH). Then I had to attach the PDF to the graphics.

I could afford to do this because the gallery consisted of 8 graphics.

×
×
  • Create New...