I have attached modelir.attachment
with my custom Course structure model. Currently, attachment model has an access to upload any file(doc, pdf, xls etc.)
1. Now I want the user to only upload a pdf file.
2. Another User will have the preview of that PDF file and he should not be able to download a particular file.