help-cgicc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-cgicc] Problem with cgi.getFile Method


From: albert gonzalez
Subject: [help-cgicc] Problem with cgi.getFile Method
Date: Wed, 9 Aug 2006 10:37:28 +0200

Hi,
When I use the getFile method, that belogs to the main class (CGIcc) to retrieve a file loaded in a form, I'd like to kown how can I ask if the file is loaded? In other words. I have several file forms, and I need to know, in each one, if a file is loaded or not. I make this:

f_name = "p_file0"
const_file_iterator file = cgi.getFile(f_name);

There is a way to do something like this: if(*file == NULL) ??
I know this is not correct, but I don't know how make it.

I tried to fix this asking for the filename, but it gives me more problems:

if(strcmp( (*file).getFilename().c_str(),"")

is not correct.

I have many problems with Templates.... Can anybody help me?

Thanks!!

Albert.

PD: I know my english is terrible, sorry :-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]