jDownloads Support Forum

Older Versions => jDownloads 3.2 (Support ended) => General => Topic started by: Artorium on 26.04.2014 13:24:01

Title: Print process after upload
Post by: Artorium on 26.04.2014 13:24:01
Hi,

i'd like to start a print after the file has successfully uploaded. Is it possible somehow to start a batch file on success? The reason is to set a watermark on the uploaded documents.

Thanks.
Title: Re: Print process after upload
Post by: Arno on 27.04.2014 18:16:39
Hi.
I think this should be possible with a special plugin.
Title: Re: Print process after upload
Post by: Artorium on 30.04.2014 10:05:34
Ok, i wasnt able to find a plugin, but maybe, it is possible that you can tell me, at what point in which file the upload process "complete" gets called or in which method so i can add a view lines of code and print it myself.
Title: Re: Print process after upload
Post by: Artorium on 30.04.2014 12:17:28
Basically i simply want to start a batch file after the upload. Where do i have to execute or run the batch file?
Title: Re: Print process after upload
Post by: Arno on 01.05.2014 00:40:40
I think you can create a content plugin and use the 'onContentAfterSave' event in it.
See here:
http://docs.joomla.org/Plugin/Events/Content
and here:
http://docs.joomla.org/Portal:Developers#Plugins
Title: Re: Print process after upload
Post by: Artorium on 13.05.2014 09:39:03
Can i also do it with the Jdownloads plugin? i added the onContentAfterSave method but it seems not to work or i cant test it if it works because i dont know if it really
got installed properly or if i have to do anything else.

My steps would be:
1. Download the jdownloads content plugin
2. Install it in the extension manager within joomla
3. Find the jdownloads.php of the extension and add the method
4. within the method add the exec command for opening the batch script
5. batch script executed

Unfortunately steps 4 and 5 do not work, do you have any idea?
Title: Re: Print process after upload
Post by: Arno on 13.05.2014 09:51:28
Quote1. Download the jdownloads content plugin
It exist in the moment not a jD 3.2 compatible version. This shall be come later when we have a rc or stable version from 3.2.