Re: Actions at upload

Eric Laffoon <[email protected]>
Newsgroups gmane.comp.kde.devel.quanta.user
Organization KDE WebDev
Message-ID <[email protected]>
On Saturday 02 August 2008 3:30:13 am Dale Strickland-Clark wrote:
> Hi
>
> (Second attempt to send this. Getting stuck with moderators.)
>
> I've configured an action to run at upload time. It is supposed to run a
> program to post-process some non-standard extra mark-up the the html files
> as they go off to the server. This can mean referring to other files in the
> same directory.
>
> In the absence of being able to locate any docs on the process, I have
> determined that:
>
> * the program is called and is passed the source files being uploaded in
> turn on stdin;
> * the program is passed no args except it's own path;
> * no special environment variables are set;
> * the program is unable to determine what files it is being passed;
> * the program is unable to change anything as stdout is printed on a
> console stream but not sent off to the target server;
>
> So my questions are:
>
> 1. How do I pass a modified version of the input file back to Quanta to
> upload but not store locally?
> 2. How do I find the path and name of the source file I'm being passed?
>
> Given those two bits of info, I think I can make this work.
>
> Thanks.

I had been meaning to look into this, but along with being busy and tired I am 
less familiar with internals in this area than Andras. I asked him to reply 
to this while we were at akademy and he said he would but the servers were 
seriously bogged down there. He's on a family vacation for a week now which 
is why I could not get to visit him in Romania this year. Please post again 
in a week if you haven't heard back.

-- 
Eric Laffoon
Project Lead - kdewebdev module
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.