Menu

uploaded files are missing

Help
rmk80
2007-09-24
2013-06-03
  • rmk80

    rmk80 - 2007-09-24

    I'm using a form generated with formgenerator v3.0 and i'm only having problems with the file upload. I'm not receiving any errors but if i check the uploaded file it just isn't there. I have all the rights set up properly so this should not be the issue. One thing i noticed is that if i try the exact same form on another webserver it is working fine!!! So the problem is not caused by the form itself but has something to do with the configuration of the webserver. So my question is: Is there any specific setting i have to change on my server for the upload function to work? To my knowledge both my testing servers have a similar config, but obviously there has to be a difference between them. I just can't figure out what it is.

     
    • TNTEverett

      TNTEverett - 2007-09-24

      It is best to ask your web server tech support.  Explain to them the same thing you explain here. 
      Files can be blocked by file extension or file size.  Have you tried a really small file?  Have you tried files of different types? 
      the other thing you can try is comparing the php environment settings between servers.

      File name phpenv.php

      <html><body><center>
      <a href="/a/">Back</a><br><br>

      <?php
      function ss_timing_start ($name = 'default') {
          global $ss_timing_start_times;
          $ss_timing_start_times[$name] = explode(' ', microtime());
      }

      function ss_timing_stop ($name = 'default') {
          global $ss_timing_stop_times;
          $ss_timing_stop_times[$name] = explode(' ', microtime());
      }

      function ss_timing_current ($name = 'default') {
          global $ss_timing_start_times, $ss_timing_stop_times;
          if (!isset($ss_timing_start_times[$name])) {
              return 0;
          }
          if (!isset($ss_timing_stop_times[$name])) {
              $stop_time = explode(' ', microtime());
          }
          else {
              $stop_time = $ss_timing_stop_times[$name];
          }
          // do the big numbers first so the small ones aren't lost
          $current = $stop_time[1] - $ss_timing_start_times[$name][1];
          $current += $stop_time[0] - $ss_timing_start_times[$name][0];
          return $current;
      }

      ss_timing_start();
      phpinfo();
      ss_timing_stop();
      ?>

      <hr><br><font color="red" size=4> The page was executed in: <?php echo ss_timing_current();?>  seconds. </font><br><br>
      <a href="/a/">Back</a>
      </center></body></html>

       
    • frankknyt

      frankknyt - 2008-10-15

      Hi,

      I know my issue is file size, how can I fix that?

       
      • TNTEverett

        TNTEverett - 2008-10-16

        It is best not to try and jump onto someone elses post when your problem may be completely different. 
        What is your problem?
        What are the error messages?
        How do you know that the problem is file size?
        What files sizes don't work?
        What file size limits did you set when you created the form?

        Get my point?

         

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.