Keyword

How to add file upload element to k2 plugin?

  • Szymon Pluta
  • Szymon Pluta's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 5 months ago #161323 by Szymon Pluta
How to add file upload element to k2 plugin? was created by Szymon Pluta
Hello,

I have downloaded k2-example-plugin-master and I would like to add image with specific dimensions to k2 article. Id there a way to add image upload that will add image to k2 media file with md5 code as name just as you do it inside your image uploads? In example you showed how to add input file value but how to add image inside plugin? I managed to add file upload in xml but where I should place any php/javascript code that will upload image, alter it's name and then place it inside Data Base plugin field.

I need to add specific images size on front end so I can't use additional fields and your image upload.

Szymon.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum