Storing path to file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Paultikken
    New Member
    • Aug 2010
    • 4

    Storing path to file

    Hi,

    I have the following problem,

    I have a HTML form with 2 different filepicker fields;

    In a table I'm trying to store 2 different references to 2 different files, one to a photo (jpg) and one to a download (zip). I'm using the filepicker from the HTML form to select the file I need and let php store only the filename and extension into the table.

    For the photo part all is working fine but when I tried to do the same with the download part, trying to refer to a .zip file of 85MB, the data is not stored into the table.

    When I try to do the same with a smaller (112kb) .zip file everything works like a charme, wich doesn't make any sense to me because I'm not actually storing the file in the table, I just insert the filename.

    I'm lost,

    Anybody any ideas?

    Cheers,

    Paul
  • Jerry Winston
    Recognized Expert New Member
    • Jun 2008
    • 145

    #2
    This is actually not a DB problem (of course because there's no data stored in the db). It's an web server (Apache?) issue. I'm not sure which server you're using, but if it's Apache you will need to check the LimitRequestBod y directive. I can't recall off the top of my head but I think the default limit is 1MB. If you're using IIS 6.0 check this link.

    I hope this fixes your problem. In any case this thread might be moved to help others find it in the Server category (If you let us know which server you're using)

    Comment

    • Paultikken
      New Member
      • Aug 2010
      • 4

      #3
      Jerry,

      Thank you very much for your quick reply, I'll have to check my settings tomorrow at work.

      I'm using Apache as my webserver.

      I'll let you now if I had any luck!!

      Thanks,

      Paul

      Comment

      • Paultikken
        New Member
        • Aug 2010
        • 4

        #4
        Jerry,

        I tried the limitrequestbod y directive (putting it between the <directory> </directory> brackets of my download directory in the httpd.conf file) but still I encounter the same problem.

        A new row is created in my table (as before) but no data is being transferred to the fields...

        Hope you can help me!

        Cheers,

        Paul

        Comment

        • Paultikken
          New Member
          • Aug 2010
          • 4

          #5
          Jerry,

          I overlooked a setting in my php.ini file. The post_max_size was set to default (8M), after changing this value it worked like a charme!!

          Thanks,

          Paul

          Comment

          Working...