I recently switched hosts and updated to ClassicPress 2.6, so I am not sure whether this is a hosting limitation (Hetzner) or a CP problem. Asking here first.
Expected behavior
I expect to be able to upload SRT and PDF files, as I was before moving hosts and before updating to CP2.6
Current behavior
All of the possible ways to upload media give a message that I do not have permission to upload that type of file.
Context
I can upload via SFTP and insert items into posts by knowing the URL, although the files uploaded directly do not appear in the Media library.
Sorry, i was under the impression that it wasnât upload files at all - did not understand that it was a format specific issue.
I have no clue however without some other context. Have you tried to right click > Inspect > console and see what it says there?
I donât know what an SRT file is, but you should certainly be able to upload PDFs in ClassicPress. The fact you canât suggests to me that this is a hosting issue.
To recapitulate: Uploading these files still DID WORK BEFORE moving your installation?
Then my first guess would be some sort of default configuration by Hetzner hosting.
What hosting do you use exactly? There are several types, starting from regular web hosting, to VPS / managed VPS, etc. Also, the lower tier plans of web hosting tend to be severly limited in their feature sets - albeit I couldnt find a specific âdisable PDF / SRTâ mentioned in the official Hetzner KB / doc pages.
The other option could be a plugin or other setting that you installed OR activated in your new environment, which is now limiting the upload of files with these extensions.
Thats to be expected, as the media library is not using files by itself, but representations of the media, with a specific internal post type called âattachmentâ. So it works similar to a symbolic link, just with extended properties (ie. meta data).
But there are quite a few plugins that allow you to directly or indirectly import media files, so if out of some reason you werenât able to solve the âdirect upload in CPâ issue, youâd still be able to have your media files at hand in the media library.