[Resolved] Create a media attachment with a custom field
This support ticket is created 4 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Is there a way to registered a media attachment with a text field in Cred forms? I'm using an external uploader which I would like to save the file url to the media library
However, Toolset form store the full image URL as a custom field value into database. So, if you want to use the text field, you need to make sure that image is uploaded to media library and with the custom field you save the image URL as custom field value to postmeta table.
Appreciate you response. I'm not using the media library because it over complicates the upload process and doesn't seem to have much negotiation in how it's displayed. Also it accepts image files even with just video.
I'm using an external uploader which spits out the temporary URL, trying to figure out how to save that to the media library in some way shape or form.
The image Generic field will simply allow you to upload image via normal image upload filed. Will this help?
Using Types, you should create a image field using the slug myimg and then with your form you can add the image field using a generic field. will this help?