Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi ! :-),
I was wondering about what the best way is to create this:
I have a PressItem doctype and i want the user to be able to upload a PDF file and then it will be listed on the website with a nice little pdf icon.
They have to be able to upload it when editing the node, i do not want them to upload the pdf to the media lib first and then link to it.
What's the best practise here?
Comment author was deleted
If you do not want to use the media library to store the document simply use the upload datatype instead of a media picker then the end users can simply upload it on the doc itself
And how would you go about stripping the path into something nice? Can i extract the name of the file and fx size using the upload datatype?
How are you fetching the files now?
isn't something like <a href="{$currentPage/data [@alias = 'pdf']}">Get the PDF</a> doing the trick for you?
/Jan
<a href=" <umbraco:Item field="fileUpload" runat="server"></umbraco:Item>">Læs PDF fil her</a> in the template right now.
But i would like the link to be something like "filename.pdf 10kb"
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
PDF upload
Hi ! :-),
I was wondering about what the best way is to create this:
I have a PressItem doctype and i want the user to be able to upload a PDF file and then it will be listed on the website with a nice little pdf icon.
They have to be able to upload it when editing the node, i do not want them to upload the pdf to the media lib first and then link to it.
What's the best practise here?
Comment author was deleted
If you do not want to use the media library to store the document simply use the upload datatype instead of a media picker then the end users can simply upload it on the doc itself
And how would you go about stripping the path into something nice? Can i extract the name of the file and fx size using the upload datatype?
How are you fetching the files now?
isn't something like <a href="{$currentPage/data [@alias = 'pdf']}">Get the PDF</a> doing the trick for you?
/Jan
<a href=" <umbraco:Item field="fileUpload" runat="server"></umbraco:Item>">Læs PDF fil her</a> in the template right now.
But i would like the link to be something like "filename.pdf 10kb"
is working on a reply...