• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Conditionally Moving an Uploaded File

#1
[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!

#2
[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...


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.