KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: markb on July 21, 2013, 01:07:52 pm

Title: Adding a custom file upload page
Post by: markb on July 21, 2013, 01:07:52 pm
I posted this question under Feature Requests, but I think it's more appropriate as a programming question. I would like to implement a page which would allow customers to upload some files. It should be a simple task involving adding a new JSP or modifying an existing one. All that is needed is a form with some basic fields, a file chooser and a button for the upload action. Is there any recommended KK API for handling a file upload outside of the Digital Download product page?

Can you advise on a good starting point for such a feature?
Title: Re: Adding a custom file upload page
Post by: julie on July 24, 2013, 08:25:43 pm
The storefront application is based on the Struts2 / Tiles framework so you need to create a JSP and a new Struts action class to manage the upload. Then you need to edit the struts and tiles configuration files in order to be able to use the new JSP and action class. If you do a Google search for Struts + File Upload you'll come across many examples to give you a good start.