Actions at upload

Dale Strickland-Clark <[email protected]>
Newsgroups gmane.comp.kde.devel.quanta.user
Organization Out-Think Ltd
Message-ID <[email protected]>
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.
-- 
Dale Strickland-Clark
Out-Think Ltd - http://www.out-think.co.uk
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.