Re: upload file

"sj29fr" <[email protected]> Mon, 14 Jan 2008 17:10:50 -0000
Newsgroups gmane.text.clearsilver.general
Message-ID <[email protected]>
> > I have this in my C source code :
> > char *filename = NULL;
> > if ((err = hdf_get_copy(cgi->hdf, "Query.firmware.FileName",
> > &filename, "\0"))) NEOERR_HANDLER;
> Hmm... that's strange, do you really use "\0"?
> And why do you always use hdf_get_copy? Do you really need to modify
the value copy?

It's a mistake from myself ;-)
 
> > My filename is always "\0". 
> > I don't understand because Query.firmware.FileHandle gives me the good
> > FILE * on my file.
> Please try to use hdf_dump_format(cgi->hdf, 0, stderr) in order to
dump all of your dataset
> and try to look for the pathname.

> > I use ClearSilver 0.10.5.
> I use ClearSilver 0.10.4.
> 
> > Did I miss something ?
> Everything seems OK for me.

I enabled debug output and I see that when Config.Upload.Unlink = 0

Query.firmware = reg920t.def
Query.firmware.Type = application/octet-stream
Query.firmware.FileHandle = 1
 

I don't have Query.firmware.FileName

Is there a possibility to get FileName with FileHandle ?

Regards,
Sebastien