Re: help-cgicc Digest, Vol 35, Issue 1
Steven King <[email protected]> Thu, 10 Aug 2006 07:08:11 +1000
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Albert, To check to see if a particular named file has been uploaded you can use the following check: if (file==cgi.getFiles().end()) // FILE DOES NOT EXIST Steve >---------------------------------------------------------------------- > >Message: 1 >Date: Wed, 9 Aug 2006 10:37:28 +0200 >From: "albert gonzalez" <[email protected]> >Subject: [help-cgicc] Problem with cgi.getFile Method >To: [email protected] >Message-ID: > <[email protected]> >Content-Type: text/plain; charset="iso-8859-1" > >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 :-) >-------------- next part -------------- >An HTML attachment was scrubbed... >URL: http://lists.gnu.org/pipermail/help-cgicc/attachments/20060809/302c8b72/attachment.html > >------------------------------ > >_______________________________________________ >help-cgicc mailing list >[email protected] >http://lists.gnu.org/mailman/listinfo/help-cgicc > > >End of help-cgicc Digest, Vol 35, Issue 1 >***************************************** > > -- <http://www.eminence.com.au/> Eminence Technology Pty Ltd PO Box 118, Moorooka QLD 4105 Web: www.eminence.com.au <http://www.eminence.com.au/> Ph: +61-7-3277-4100 Fax: +61-7-3105-7484