[Klone-users] Issue with file uploading at /tmp

Stefano Barbato barbato at koanlogic.com
Tue Oct 7 12:22:59 EDT 2008


Hi Miquel,

KLone uses the standard (libc) tmpname() function to generate the name  
of the temporary file and tmpname(), in turn, uses the TMPDIR  
environment variable to choose the temporary directory.

So you should be able to move uploaded files in /var/tmp setting and  
exporting the TMPDIR variable before launching KLone:

# export TMPDIR=/var/tmp
# kloned

bye!
s


On 07/ott/08, at 18:15, Miquel Beltran Febrer wrote:

> Hi to all,
>
> We are developing a web page for an embedden linux system using  
> klone, by the moment the results are pretty good.
>
> Now, we wanted to use our web page to upload a file and save it on  
> the system.
> We've seen that the file upload subsystem puts the temporal file  
> inside /tmp, like /tmp/file54321. Since we don't have a proper /tmp  
> folder, we could configure the session file.path to be on /var/tmp.  
> But no way to change the path where the file uploads are put on.
>
> Our question are:
> Is there a way we can change the temporal folder for file uploading  
> to be /var/tmp? (We haven't found it in the kloned.conf manpage)
> Any other ideas? (Besides creating a /tmp folder)
>
> Thanks!
>
> -- 
> Miquel Beltran Febrer
>
> W-onesys, SL
> WDM Optical NEtworks SYStems
> c/ Orient, 78-84
> 08172 Sant Cugat del Valles (Barcelona) - SPAIN
> Tel. + 34 93 590 11 49
> fax  + 34 93 590 11 57
> www.wonesys.com
>
> Please consider the environment before printing this e-mail
>
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>





More information about the klone-users mailing list