|Newbie questions about Pliant
Accessing pliants temp dir from C
|Message posted by maybe someDude on 2004/02/05 06:14:56
|Hi, does anyone know how to access the pliant /tmp/ folder using C, because everytime
i try to read info from that folder, it disappears. I am using the file_upload function
then i store the path into a var. Then the user has to click a button which will then
make my website to pass that file as a parameter to one of my C functions.
The C function receiver the correct path, but once i try to open the file it will no
longer be available.
Please anyone help me..
|Message posted by hubert.tonneau on 2004/02/05 08:59:57
|If you want to keep the file, you have to move it. Else, Pliant HTTP server will
drop it at the end of the HTTP request answer.
file_upload "" (var Str filename) noeol
button "Upload" noeol
file_move filename "file:/tmp/myfile"