X
X
xonar2020-01-13 23:51:36
PowerShell
xonar, 2020-01-13 23:51:36

How to get links to media files?

Greetings.
There is a task. It is necessary to display a list of reports in pdf format on the page. PDF can be loaded into media files, but how then through the code to loop through all these PDF files, their name and addresses to get and display on the page?
It can be a plugin, if you know. But, I didn't find anything like that.
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
eugenyg, 2019-03-28
@eugenyg

try this
google query: powershell get all dhcp reservations
result: https://social.technet.microsoft.com/Forums/window...

K
Konstantin Tsvetkov, 2019-03-28
@tsklab

\\?\before full path. Documentation: File Path Formats on Windows Systems .

V
Vladimir Druzhaev, 2020-01-14
@xonar

get_attached_media()- a function to get attachments. Well, output through it - pass the type and id of the record.
You will receive an array of data - choose from there what you need (url, name, upload date) and typeset in the desired format

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question