What happens when I run out of space?

  • gtdrives
    Asked on November 4, 2015 at 8:52 PM

    I redesigned my Website 3 years ago. At the time. JotForm was practically brand new. It was kinda buggy and had a handful of integrations. This service has really come along nicely. I put my form together in about 20 minutes. Then I spent the next 3 hours tweaking until it was perfect. LOL Thanks guys.

    One small question. I integrated my form with Google Drive, so my art department had access to the uploads from the form. Not trying to be cheap, but what will happen if my space gets filled up? Do the forms still get submitted? I don't actually need the space at JotForm, because it is stored in google drive.

    Congratulations with such a mature service here. I am really quite amazed. Very viable competitor in the market place. So easy. Thanks.

  • Charlie
    Replied on November 5, 2015 at 3:54 AM

    Hi,

    Thank you for the kind words, I'm glad that you find our form builder useful :)

    I personally haven't encountered a case where the Google Drive ran out of space. I presume that the file upload will not get through your Google Drive folder because there's no more space to it, BUT the submission should still be successfully be saved in your JotForm account.

    Please also do check this guide about the upload limits here: http://www.jotform.com/help/33-Changing-the-Upload-Size-Limit.

    You can simultaneously integrate other file sharing storage services like Dropbox and Box.net, you can also integrate an FTP server if you want. You can check it here: http://apps.jotform.com/category/file_sharing_and_storage.

    I hope that helps.

  • gtdrives
    Replied on November 5, 2015 at 8:51 AM

    Hi, I think I might have not been very clear. JotForm only provides so much space, but I have Drive accepting files, so I don't need the space from JotForm. Do I have to clear the JotForm storage periodically in order to continue to receive attachments? Or will the proud files just be automatically removed to make space for the next attachment, which will be copied to Drive?

     

    Thanks again,

     

    Troy

  • Charlie
    Replied on November 5, 2015 at 9:19 AM

    Hi,

    Unfortunately, there's no option to prevent or stop the files being uploaded directly to JotForm. If you reached your upload storage space in JotForm, all of the form will temporarily be disabled which means no new submission will be received. To continue using the forms, you can try upgrading to a higher plan for a higher upload storage space OR you can free up your space by deleting the submissions that has file uploads on them. Please do note that deleting submissions will permanently delete the data and is irreversible.

    Let us know if you need more information on this.

  • gtdrives
    Replied on November 5, 2015 at 10:29 AM

    This in a cron job should work... 

     

    <?php

        

        try {

            include "jotform-api-php/JotForm.php";

            

            $jotformAPI = new JotForm("YOUR API KEY");

     

            $submissions = $jotformAPI->getSubmissions(0, 50, null, null);

     

            foreach ($submissions as $submission) {

                $result = $jotformAPI->deleteSubmission($submission["id"]);

                print $result;

            }

        }

        catch (Exception $e) {

            var_dump($e->getMessage());

        }

        

    ?>

  • Charlie
    Replied on November 5, 2015 at 12:11 PM

    Nice, that would be possible. You can also try using the API to call for your current usage.

    Here's that section in our API: http://api.jotform.com/docs/#user-usage.

    The "uploads" in the output should refer to the size of your total uploads in bytes, you can use that as a trigger for the cron Job instead of the number of submissions, using that let's say when the uploads reaches near 100 MB, delete the oldest submissions or something.

    I hope that helps.