On Fri, 2004-07-23 at 18:14, Sandro Dentella wrote:
> On Wed, Jul 21, 2004 at 06:29:52PM +1000, Jamie Cameron wrote:
> > The best solution is to use Webmin's tempname function, which will
> > return a filename under /tmp/.webmin suitable for use as a temporary
> > directory. Your code would look something like :
>
> This would solve the problem of having temp space available, not to return
> the space as a link, the temporary space would be out of the
> "DocumentRoot" of webmin.
>
> I guess the only way is to implement a function that gets from the temp
> space and returns it, but in this way I should hanldle the header, I should
> know which type of file it is...
>
> This solution in fact would give me te info when the user finished
> downloading (the script terminates) and I can delete the file...
Yes, that sounds like a good solution. You could have a simple script
that just opens and outputs the temp file, sort of like the
file/show.cgi script.
- Jamie
|