Conditionally Moving an Uploaded File - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Conditionally Moving an Uploaded File (/showthread.php?tid=7457) |
Conditionally Moving an Uploaded File - El Forum - 04-09-2008 [eluser]Eric Cope[/eluser] Hello all, Maybe it is just late, but does anyone have any ideas on how to conditionally upload a file from a form? I have a form that does not always upload a pdf document. I could compare to the error string, but I was hoping for something more elegant? Thanks! Conditionally Moving an Uploaded File - El Forum - 04-10-2008 [eluser]Eric Cope[/eluser] Reading the Upload library, they check the $_FILE['$field']. If it is set, then they proceed, otherwise throw an error. I guess I could do the same... |