• Nice plugin and great work!

    I just wonder how to custom the plugin so I can upload the files to third-party server like Dropbox or Amazon S3?

    Is there are any action allows me to do it?

    Thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author ovann86

    (@ovann86)

    Hi,

    There’s currently not an option to upload to a third-party, but you can enable import to the WordPress media library. Perhaps you can find another plugin that can take it from the media library and add it to dropbox/amazon after it’s been added?

    I see there’s another plugin that claims to upload to dropbox, but it’s out of support now and may not be working.

    https://www.ads-software.com/support/view/plugin-reviews/gravity-forms-dropbox-uploader

    If you can work with PHP, check out the set_post_content function in the plugins ‘dropbox.php’ file. If you can adapt it to work with this plugin I’ll happily add it for others to benefit from the feature.

    I’ll add this to the wishlist for the future but can’t guarantee any timeframes or if it’s even still possible.

    Plugin Author ovann86

    (@ovann86)

    Hi,

    There’s currently not an option to upload to a third-party, but you can enable import to the WordPress media library. Perhaps you can find another plugin that can take it from the media library and add it to dropbox/amazon after it’s been added?

    I see there’s another plugin that claims to upload to dropbox, but it’s out of support now and may not be working.

    https://www.ads-software.com/support/view/plugin-reviews/gravity-forms-dropbox-uploader

    If you can work with PHP, check out the set_post_content function in the plugins ‘dropbox.php’ file. If you can adapt it to work with this plugin I’ll happily add it for others to benefit from the feature.

    I’ll add this to the wishlist for the future but can’t guarantee any timeframes or if it’s even still possible.

    Plugin Author ovann86

    (@ovann86)

    Hi,

    There’s currently not an option to upload to a third-party, but you can enable import to the WordPress media library. Perhaps you can find another plugin that can take it from the media library and add it to dropbox/amazon after it’s been added?

    I see there’s another plugin that claims to upload to dropbox, but it’s out of support now and may not be working.

    https://www.ads-software.com/support/view/plugin-reviews/gravity-forms-dropbox-uploader

    If you can work with PHP, check out the set_post_content function in the plugins ‘dropbox.php’ file. If you can adapt it to work with this plugin I’ll happily add it for others to benefit from the feature.

    I’ll add this to the wishlist for the future but can’t guarantee any time frame or if it’s even still possible.

    Plugin Author ovann86

    (@ovann86)

    Hi,

    There’s currently not an option to upload to a third-party, but you can enable import to the WordPress media library. Perhaps you can find another plugin that can take it from the media library and add it to dropbox/amazon after it’s been added?

    I see there’s another plugin that claims to upload to dropbox, but it’s out of support now and may not be working.

    https://www.ads-software.com/support/view/plugin-reviews/gravity-forms-dropbox-uploader

    If you can work with PHP, check out the set_post_content function in the plugins ‘dropbox.php’ file. If you can adapt it to work with this plugin I’ll happily add it for others to benefit from the feature.

    I’ll add this to the wishlist for the future but can’t guarantee any time frame or if it’s even still possible.

    Plugin Author ovann86

    (@ovann86)

    Hi,

    There’s currently not an option to upload to a third-party, but you can enable import to the WordPress media library. Perhaps you can find another plugin that can take it from the media library and add it to dropbox/amazon after it’s been added?

    I see there’s another plugin that claims to upload to dropbox, but it’s out of support now and may not be working.

    https://www.ads-software.com/support/view/plugin-reviews/gravity-forms-dropbox-uploader

    If you can work with PHP, check out the set_post_content function in the plugins ‘dropbox.php’ file. If you can adapt it to work with this plugin I’ll happily add it for others to benefit from the feature.

    I’ll add this to the wishlist for the future but can’t guarantee any time frame or if it’s even still possible.

    Plugin Author ovann86

    (@ovann86)

    Hi,

    There’s currently not an option to upload to a third-party, but you can enable import to the WordPress media library. Perhaps you can find another plugin that can take it from the media library and add it to dropbox/amazon after it’s been added?

    I see there’s another plugin that claims to upload to dropbox, but it’s out of support now and may not be working.

    https://www.ads-software.com/support/view/plugin-reviews/gravity-forms-dropbox-uploader

    If you can work with PHP, check out the set_post_content function in the plugins ‘dropbox.php’ file. If you can adapt it to work with this plugin I’ll happily add it for others to benefit from the feature.

    I’ll add this to the wishlist for the future but can’t guarantee any time frame or if it’s even still possible.

    Thread Starter Stanley Wang

    (@bluestan)

    Hi,

    Thank you for the quick response!

    I will look into the plugin you provide and see how it works.

    Thank you!

    Plugin Author ovann86

    (@ovann86)

    Hi,

    I thought about it a little more, and yes there is a action you can use – the gform_post_submission action, which the other plugin uses.

    It’ll be a pretty significant bit of work though, you’ll need to setup a way to save your Dropbox username and password to Gravity Forms (e.g. a settings page), loop through the submitted form fields to find the upload fields, check the content, check the files can be saved to dropbox (e.g. file name isnt too long, remove any characters from the file name that dropbox doesnt support) and then upload to Dropbox using their API.

    Plugin Author ovann86

    (@ovann86)

    Hi again,

    I had a go at setting up an export to Dropbox using the gform_post_submission.

    It’s very much possible and I could get it to work but it had flaws and would have massive scope creep.

    When using the gform_post_submission action to send to dropbox it makes the form submit stage extremely slow (it sits there loading whilst your server copies to dropbox). I created a new filter (in my development copy) that does the copy straight after the upload, it makes the upload slower but at least it’s only one file instead of having to wait for a whole form of files.

    Scope creep would be an issue – do you keep a copy of the files on the server, or do you delete them after they’re copied, do you provide an option for both, do you verify the dropbox copy before deleting, do you change the links to the files in the form to point to the Dropbox copy, what happens when a user deletes the file from the form – do you delete the copy from dropbox and/or the server etc etc.

    What I’m thinking of doing, if you have the capacity to write this functionality, is create an action that you can use directly after the upload has completed.

    Other than the filter, I don’t think syncing to dropbox is something I can work on in the short to medium term. At a guess, it could be anywhere between 5 – 10 hours to do it right and test.

    Let me know if you’re interested in me adding the filter in.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘nice plugin’ is closed to new replies.