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

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

help! mp3 file won't upload


  1. galloween
    Member

    Hello all!
    I'm having trouble uploading mp3 files with machform. All other file types upload fine, but mp3 files seem to upload (it takes time etc), but won't show up in form entries or admin email.
    File size limit in php.ini and allowed file types in config.php seem to be fine..
    Any ideas?

    Posted 14 years ago #
  2. galloween
    Member

    ok I think I managed it by copying the php.ini file from root to machform folder.

    another problem - the script checks for required fields AFTER it uploads file, which is not so good, as the file needs to be uploaded again after the field has been filled correctly... any way to fix this?

    Posted 14 years ago #
  3. yuniar

    I'm afraid there is no workaround for this yet. I suggest to set your file upload field to required to ensure the file always being attached.


    MachForm Founder

    Posted 14 years ago #
  4. galloween
    Member

    thanks for your reply and suggestion!
    the required field in my form is email, file is optional. but if a user adds a file, machform first uploads it (user has to wait) then checks for required fields (email) and if its not filled in or is in incorrect format, it displays an error and the file needs to be uploaded again. the form has to check for required fields and right data formats BEFORE it uploads the file... if I make the upload required it will still upload first and check for other required fields after that....

    Posted 14 years ago #

RSS feed for this topic

Reply