Add image upload to user upload form

Phoca Download - download manager
sign
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 24 Mar 2014, 02:25

Add image upload to user upload form

Post 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.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48568
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Add image upload to user upload form

Post 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
If you find Phoca extensions useful, please support the project
Post Reply