I am creating a WordPress website that will allow members to upload media such as videos, images, etc. They will do this in an open manner, for example:domain.com/upload
The form will ask for a name, a brief summary, show some categories to choose from, and finally a file downloader. Then the user will be able to submit the form, and it will appear on the site as a message, but instead of just text, this is part of the medium.
I created a custom message type and everything seems to be fine, the problem is how to work with media loading, since the default WP method is to load an element and then manually insert it into the message (and you can have as many inserted as you want) . Where I want users to be able to upload only one file per message and should not embed the file in the message, because the file itself is a message. They will also be able to upload an image with an image.
Any ideas on how I can develop this? Thank.
source
share