[Klone-users] Issue with file uploading at /tmp
Miquel Beltran Febrer
mbeltran at wonesys.com
Tue Oct 7 12:39:15 EDT 2008
Thank you Stefano.
But it haven't resolved our issue, maybe the problem with temporal
files is in another place, so we decided to create the /tmp folder and
avoid future problems. We have tested building the webpage in a standard
linux computer and the file upload system works ok.
Maybe is because this system doesn't use the standard libc, and it's
using a special libc for embedded systems.
Bye!
Miquel Beltran
Stefano Barbato escribió:
> 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
>>
>
>
> _______________________________________________
> Klone-users mailing list
> Klone-users at koanlogic.com
> http://koanlogic.com/cgi-bin/mailman/listinfo/klone-users
>
--
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
More information about the klone-users
mailing list