Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forked and made changes for fileuploads #12

Open
saltnpixels opened this issue Dec 8, 2016 · 0 comments
Open

Forked and made changes for fileuploads #12

saltnpixels opened this issue Dec 8, 2016 · 0 comments

Comments

@saltnpixels
Copy link

saltnpixels commented Dec 8, 2016

I forked a plugin for the first time in my life.
No I have no idea how to make a plugin, I make themes.

But here is what I changed, although maybe you can just add a filter
The fielupload on a regular form is saved to the library and its attachment id is saved to the custom field instead of a url.

Then when post updates is called on a form it updates fileuploads with the image from the attachment id.

Lastly if you want to use fileuploads to save to a post image you can add class "thumb" to that fileupload field in the form editor.

fileupload seems much better than post image, as it allows for more settings and max size and types of extensions and sutff…

I made the plugin with pods in mind, but I think it might work with ACF too. Not sure though.
https://github.com/saltnpixels/gravity-forms-post-updates-pods

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant