• Hello and thanks in advance!

    I am suddenly unable to upload PDF files. The media library goes through the upload process without errors, but when I follow the URL to the newly uploaded PDF file, instead of showing me the file, I now get a 404 Page Not Found error.

    All of my old PDF files still show up properly. I have always been able to upload a PDF without problem before now. I have no idea what would have changed.

    I was still able to upload a jpg file to the media library today and was able to access the file properly. It is only the PDF files causing issue right now.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can try resetting permalinks. Switch to plain style, save the change, see if that fixes the issues, then you can switch back to your preferred structure.

    I’ve started the getting the same issue on a new site as well. Just get a 404 every time a PDF URL is clicked.

    I’ve tried resetting the permalinks but still no joy

    OK – I discovered the issue was caused by my .htaccess file. I was also using the Sucuri plugin and using the hardening option of restricting access to the .htaccess file. I disabled this option on Sucuri and now it’s working fine.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Uploaded PDF files are showing a 404 page not found error instead of the file’ is closed to new replies.