I used ACF to create a Document Library where users can upload their files…
I have used the ACF File field for the uploading
I have aslo created the Single Template for the post, should someone need to download the file and the link and download is working fine…
Now I need some help expaning on my template, as I want to display an image (and if possible the file-size) for the type of file that was added to the library…
For example if a user uploaded a pdf document, I want to show an image of a PDF… and so on…
Most used file types are pdf / doc, docx (Word) / xls, xlsx (Excel) / ppt, pptx (Powerpoint)
rtf, txt (Text) / jpg, png (Images)