Upload Image in frontend form?



  • How could I allow and image to be uploaded in a frontend form? Should I use the Media modules store() and linkMedia() methods?


  • Global Moderator

    @LaravelDev For media module linkMedia() you would need Entity to link to.
    Depends on what context you are allowing upload. If it's something like User Profile then you should have User Profile frontend module, then you can follow documentation or do your own design and submit required data via ajax/post to media module.


Log in to reply