Send image in user profile view

  • Hi,


    Does anyone know how I can email an image from the user profile on the fron-endt?


    i have my profile.php

    Code
    1. <div uk-form-custom="target: true">
    2. <input type="file" id="file" name="file" @change="onFileChange" ref="file-input" multiple>
    3. <input class="uk-input uk-form-width-large" type="text" placeholder="<?= __("Upload") ?>" disabled>
    4. </div>


    profile.js



    ProfileController.php



    I cant send my image from vue to the php function... Any idea? thanks guys..


    UPDATE:


    Already send the image by vue to php and it shows me this result.

    Code
    1. public function saveAction() {
    2. var_dump($_FILES);
    3. }


    Now my question is: How can I send the image by mail with the App :: Mailer ()?



    NEW UPDATE:


    Now is working, if someone is planning to do the same thing here is the code:



    I'm doing this from the pagekit core (user) module, but I'm going to do it for an own extension.