Page 1 of 1

Add image upload to user upload form

Posted: 24 Mar 2014, 02:35
by sign
Hi, i created a category to show a list of PDF magazines, and i show the magazine number list and for each i add a cover image. When i upload the files from backend i can add image for my magazines, but when a user upload a magazine from frontend he can't add cover image to his upload.

I'm trying add the function to add image to a new upload in frontend but i'm really lost :x

I locate the file when the form is created, /components/com_phocadownload/views/user/tmpl/default_files, i try to put

Code: Select all

<td><strong><?php echo JText::_('COM_PHOCADOWNLOAD_FIELD_IMAGE_DOWNLOAD_LABEL');?>:</strong></td><td>
<input type="file" id="phocadownload-upload-image" name="phocadownloaduploadimage" />
</tr>	
But don't work :(

I'm really need help with this, sorry for my bad programmer skills and english.

Best regards.

Re: Add image upload to user upload form

Posted: 24 Mar 2014, 23:29
by Jan
Hi, try to see similar posts,there were some guides how to add new form items to upload form in frontend (input form needs to be added in view, then controller needs to be changed and model too)

Jan