Page 1 of 1

Front end upload and preview

Posted: 29 Sep 2011, 02:05
by dlwilson007
Hi,

I have users who are uploading files from the front end. The tool is great to let them select a section and category (although from a UI standpoint, it seems those select boxes should be lower in the form near the title). In our use, the users are creating primarily PDF files, which means they can be previewed. However, most of the users will never log into the backend of Joomla, and need as simple a process as possible. Apparently, the only way to create a preview is to turn it on in the parameters, and then when adding a file in the back end, making sure the location of the file is added in the file preview field.

This works great, but the problem is if my users will never use the backend, they will never be able to copy the link to the file-preview. Instead, there will be an additional step for an administrator to clean up after the user and add the link.

So two questions...first, is there something I am missing that will allow the preview link to be automatically populated for the users? Second, if there is not an option, how can I make the request. Seems like it would be a simple addition to the front end form since the table is already set up to accept the link...although if you make it a little more complex, it could use logic to automatically create a location link for the PDF preview by just copying the original location.

My hope is that the idea above is a waste of typing and somehow this is already set up and I am just ignorant.

Re: Front end upload and preview

Posted: 30 Sep 2011, 23:08
by Jan
Hi, for now there is no such option, so this needs to be customized in the code, in short:

- in model which saves the filename, just copy it, check if this is e.g. pdf and if yes, save it as preview.

Jan