Menu

File Upload Problem

Help
ee
2003-03-21
2003-05-14
  • ee

    ee - 2003-03-21

    I want to give people using one of my generated forms the option of uploading up to 6 photos. But, I also want them to only send 2 (for example) instaed of 6. So, I create the form with 6 upload fields, none of them REQUIRED). When I try to upload less than 6, I get an error message for the rest. Is there a fix to this?
    Thanks for an otherwise great script.

     
    • ee

      ee - 2003-03-21

      Same problem there.

       
    • Musawir Ali

      Musawir Ali - 2003-03-21

      image fields are required by default. You can tinker with the generated code to remove this restriction though.

       
      • ee

        ee - 2003-03-21

        but I don't think I do. I will try though...
        Anyplace in specific to look first? I really need this option.

        Again, thanks for an otherwise great program.

         
    • Musawir Ali

      Musawir Ali - 2003-03-21

      Error checking is done in the upper part of the program (process.php). An error flag is set if something at respective places. You would be looking for this error flag ($error=1) and removing it from the places you don't want to be required.

       
    • Musawir Ali

      Musawir Ali - 2003-03-21

      Also, program modifications are provided as a service. Check out the project homepage for details: http://phpformgen.sourceforge.net

       
    • Anonymous

      Anonymous - 2003-05-14

      Hello. I tried getting rid of the flag ($error=1)  from the file upload part of the script but it then shows:
      Warning: Unable to open '' for reading: No such file or directory in /usr/webspace/iofm.net/f/l/flowerpot/stuff/ttchallenge/forms/process.php on line 82

      and lists each line where the error flag was. I can't be doing this right. Can you help? Other than that, cheers on an ace script!

       
    • Anonymous

      Anonymous - 2003-05-14

      Hello. I tried getting rid of the flag ($error=1)  from the file upload part of the script but it then shows:
      Warning: Unable to open '' for reading: No such file or directory in /usr/webspace/iofm.net/f/l/flowerpot/stuff/ttchallenge/forms/process.php on line 82

      and lists each line where the error flag was. I can't be doing this right. Can you help? Other than that, cheers on an ace script!

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.