I want to create a simple website that stores PDF for search. The PDFs do not need to be searchable themselves (I mean, that would work, but there are only three items on each file so using custom meta fields would be simpler). Each PDF contains certain information and this could be added as custom fields which is probably easier.
First, I'd like to be able to duplicate the appearance of Media upload. Instead of uploading a PDF in a custom post type as an attachment, I'd like to be able to do this so that the default document title would be taken from the file name in the same way as it might be for an image. I've been unable to find anything that seems to allow me to do this? Is it possible? Is it so simple that I have missed it?
I'd also like to limit the upload to PDF only, I have found various questions on this and they seem to limit it to site wide (but for all users below ADMIN). Restrict file uploads by extension? This will probably be sufficient however, if it could be limited to only that post type, that would be ideal and leave the standard media unaffected.
Once this is done, I need to add some custom fields into the Attachment Details Screen. Instead of Title, Caption, Alt Text and Description I'd like different fields. For example, if this were a TV Episode, the meta might be "TV Series", "Director", "Writer#1", "Writer#2", "Writer#3". Again, seem to only be able to do this in a post/custom post type.
I would have expected this to be a pretty common thing to do but for the life of me I can't find the information online. Even when I see the image centric custom post type most of the recommendations include using the featured image option.
Can anyone point me in the right direction?