Document Type File Uploader URL

ANKIT MISTRY asked on March 4, 2015 13:16

Hello,

In my E-commerce site for one page i have used document type to insert details, and to upload image i have used "Form Control type" = Uploader and "Form Control" = Upload File. Which is working perfect. But it store uploaded image in metafile or something and when i try to get URL of that uploaded image it reads like "http://www.mysite.co.uk/CMSPages/GetFile.aspx?guid=df3b54d4-b3c3-437c-ae25-fdda4640795e" so can any one advise me how can i get URL with extension of image which i upload like "http://www.fonehouse.co.uk/anypath/myfilename.jpg" ?

Please Advise.

Thanks Ankit.

Correct Answer

Petar Kozjak answered on March 4, 2015 14:41

Hi,

Brendan instructions are right direction.

Here is instruction for version 6 got to SiteManager > Development > Document Type (one that you want to change) > Fields and add new Field type Text and chose Media selection or URL selector.

So when user want's to create some document like Phones in Products it will get document type with URL selector for image, that will open dialog where you can chose Madia Library location and point to physical file.

Hope this helps.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Petar Kozjak answered on March 4, 2015 14:09

Hi,

I would advice you to user Media Library. So change your upload control to use Media Library file selector. https://docs.kentico.com/display/K8/Media+library+files

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on March 4, 2015 14:29

You can use the Media Library selector as Petar suggested or simply change your control to a URL Selector for a text data type, and then upload the image as

  • an attachment to the document,
  • a document in the content tree,
  • a media library file or
  • use an external address.

I've found this to be the most flexible and preferred by my clients.

1 votesVote for this answer Mark as a Correct answer

ANKIT MISTRY answered on March 4, 2015 14:31

Thank You Petar your response but can you advise how i can upload image from media library to my document type. I am using Kentico 6.0.

0 votesVote for this answer Mark as a Correct answer

ANKIT MISTRY answered on March 4, 2015 19:52

Thank You Brendan and Petar.

Thank you very much :)

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.