This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 3

File Uploader problem


  1. inkpotprinting
    Member

    When uploading 40mb file it gets to 100% and then turns red and says "This field is required. Please upload a file." and the file isn't uploaded. Smaller files (2mb) upload OK. In the form properties Limit File Size is set to 100mb. Can you help?

    Posted 12 years ago #
  2. yuniar

    By default, there is a limit being set by your hosting company regarding the maximum file size allowed to be uploaded through PHP script.
    The default on most hosting companies is around 2MB.

    To increase this limit, you can edit your PHP configuration file (php.ini) and set these values:

    max_execution_time = 599
    max_input_time = 599
    upload_max_filesize = 100M
    post_max_size = 100M

    the above would allow file upload up to 100MB.

    If you aren't sure on how to do it or don't have any access to the php.ini file, please contact your hosting tech support and let them know.
    They should be able to do the adjustments for you.


    MachForm Founder

    Posted 12 years ago #
  3. inkpotprinting
    Member

    Thanks! I checked under cpanel and our php isn't user-configurable so I've emailed support.

    Posted 12 years ago #
  4. inkpotprinting
    Member

    My ISP made those changes to my php and now every form is broken!

    Fatal error: Class 'PDO' not found in /home/inkpotpr/public_html/machform/includes/db-core.php on line 12

    <EDIT>
    Never mind, I fixed it. Apparently I need to add
    extension=pdo.so
    extension=pdo_sqlite.so
    extension=sqlite.so
    extension=pdo_mysql.so
    to php.ini
    </EDIT>

    Posted 12 years ago #
  5. AguilaFan
    Member

    @inkpotprinting,
    THANKS!!
    HostGator did some changes to fix a bad server transfer and some things were "changed".
    Had the same error and your post gave me the right idea on how to correct.
    In my case, the PDO.so is in different directory. Have a VPS.
    Had to add this line to get it fixed and what a welcome relief when my Machform menu opened. It is an absolute direct rather than relative reference.

    This php.ini instruction did NOT work for me:

    ; Note that it should be the name of the module only; no directory information
    ; needs to go here. Specify the location of the extension with the
    ; extension_dir directive above.

    This did:
    extension=/usr/local/lib/php/extensions/no-debug-non-zts-20090626/pdo.so

    The trick is finding where the POD.do and related files reside.

    Hope this helps someone else.

    Posted 10 years ago #

RSS feed for this topic

Reply