I have a WordPress website I created inside localhost. I transferred it to a live server but the uploads for PDF documents stopped working. I am using the Formidable Forms plugin. I can upload .docx and .doc documents without an issue. Also, any other formats like .jpg, and .png also don't work.
What I have tried: -Disabling all other plugins and switching theme.
-Updating WordPress to the latest version 6.0
-Switching to a different live server.
-Updating all plugins to the latest versions
-SSL & without SSL
-Upgraded, downgraded PHP versions to test
From the image, you can see that the .PDF and jpg, png appear broken.
Anything I can check?
Inspecting the HTML from the working documents
<img width="48" height="64" src="http://example.com/wp-includes/images/media/document.png"
class="attachment-thumbnail size-thumbnail" alt="" loading="lazy">
HTML generated from PDFs documents that don't work
<img width="106" height="150" src="http://example.com/frm_file/sample-5-pdf-106x150.jpg"
class="attachment-thumbnail size-thumbnail" alt="" loading="lazy">
I checked the HTML code inside the upload section and here is what it looks like
The code is the same inside localhost and the live server meaning the files get uploaded properly.
But the HTML codes in the first image are different which causes the image to be broken. It looks like the problem occurs at the point when the placeholder icons that indicate a file has been uploaded should be displayed. (Correct display HTML in the first image)

