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

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Attachment Compression


  1. Anonymous
    Unregistered

    We use MachForm to collect pictures of work done by technicians in the field. What I'm seeing is max i/o on our server likely due to the attachment size when the form is being submitted. We've reduced all the camera resolutions on the mobile phones in the field but on a Galaxy Note 4, that's still a sizable picture and we're attaching 4-8 of them in a single form.

    Are there plans for image compression for MachForm? Is there already a solution I'm unaware of?

    Thanks,

    --Joel

    Posted 9 years ago #
  2. Anonymous
    Unregistered

    On a side note, MachForm handles wonderfully and I've never had attachments fail but we do regularly see the mobile browsers hang because the server is busy handling another request.

    We're using GoDaddy cPanel shared hosting with maximum resources. CPU load has never gone above 25% and all the other resources are flat and under 10% utilization but i/o is regularly maxed. The solution can't possibly be move to VPS or dedicated hosting to save these pictures, right?

    --Joel

    Posted 9 years ago #
  3. karumba
    Member

    i have a similar problem. i'm also using machform to collect big files from my clients & my machform is running on a normal webspace (not a rented dedicated or virtual server). but sometimes (& the probability increases the larger the files are) the upload hangs & the %-value doesn't increase anymore.

    Posted 9 years ago #
  4. AMurray
    Pro Member

    Have you checked the form properties option for File size upload limit? Make sure its adequate to meet the demands of your form's usage e.g. if you're uploading files that are 20+ Megabytes, make the upload at least that if not more.

    Also check your php.ini for those below:

    • file size limit (this one would have to be at least the same as the form properties setting above
    • memory limit
    • file upload post and upload limits
    • time-out limits

    If the phone takes photos as JPEGS - that is already a compressed file format - the more compression the more degredation of picture quality. Even if Machform had a way to put such attachments in a compressed (ZIP) folder, I don't know how much more reduced you could get the filest - probbably not enough to get past the issues you're having, so would check on the server limits you have on your hosting account first.

    We're using GoDaddy cPanel shared hosting with maximum resources.

    That wouldn't be the entire server's resources at your disposal, only your 'piece of the pie" so to speak. You could easily therefore be exceeding your shared hosting account's allocation of the resources like those mentioned above.

    Posted 9 years ago #
  5. Anonymous
    Unregistered

    I'm still having trouble. I did make the following changes to my php.ini file and we'll see how things go:

    ; Memory limit
    memory_limit = -1

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 100M

    ; Must be greater than or equal to upload_max_filesize
    post_max_size = 105M

    --Joel

    Posted 9 years ago #
  6. AMurray
    Pro Member

    memory_limit = -1 (??) doesn't look right - should be something like 128M, 256M, 512M etc.

    Posted 9 years ago #
  7. Anonymous
    Unregistered

  8. Anonymous
    Unregistered

    I changed it to 2048 just to be safe, which is what is available to me.

    --Joel

    Posted 9 years ago #
  9. Anonymous
    Unregistered

    The performance has increased significantly but I'm still reaching max i/o several times each day. I'm exploring some options with Amazon AWS for hosting instead of GoDaddy.

    --Joel

    Posted 9 years ago #
  10. AMurray
    Pro Member

    2048 M should be plenty, assuming you're on the "Level 3" shared hosting?
    https://www.godaddy.com/help/cpanel-shared-hosting-resource-limits-12001.

    It might simply be the nature of the shared hosting (and GoDaddy in particular).

    Posted 9 years ago #
  11. Anonymous
    Unregistered

    Yes, I'm using the level 3 cPanel shared hosting with GoDaddy. It's still maxing out i/o but the performance is good enough that it looks like we'll be ok.

    --Joel

    Posted 9 years ago #

RSS feed for this topic

Reply