Problem with cgi.getFile Method
"albert gonzalez" <[email protected]> Wed, 9 Aug 2006 10:37:28 +0200
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <[email protected]> |
--===============0640714279== Content-Type: multipart/alternative; boundary="----=_Part_45143_2540147.1155112648213" ------=_Part_45143_2540147.1155112648213 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 :-) ------=_Part_45143_2540147.1155112648213 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi, <br>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: <br><br><div style="margin-left: 40px; color: rgb(51, 102, 255);">f_name = "p_file0"<br>const_file_iterator file = cgi.getFile(f_name);<br></div><br>There is a way to do something like this: <span style="color: rgb(51, 102, 255);"> if(*file == NULL)</span> ?? <br>I know this is not correct, but I don't know how make it.<br><br>I tried to fix this asking for the filename, but it gives me more problems:<br><br><div style="margin-left: 40px; color: rgb(51, 102, 255);"> if(strcmp( (*file).getFilename().c_str(),"")<br></div><br>is not correct.<br><br>I have many problems with Templates.... Can anybody help me?<br><br>Thanks!!<br><br>Albert.<br><br>PD: I know my english is terrible, sorry :-) <br> ------=_Part_45143_2540147.1155112648213-- --===============0640714279== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ help-cgicc mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-cgicc --===============0640714279==--