• Great plugin!
    I just have one question:

    I want to know if there’s a way to have the ID of the user who uploaded the file?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Ismail

    (@elhardoum)

    Hi Jean,

    Thank you.

    I didn’t include much hooks to filter the response lol but how are you planning to use the user ID assuming you get one? with JavaScript? Generally speaking the user who uploaded the file would be the current user which you could get with get_current_user_id()

    Just let me know how you want to use it and I will be happy to help.

    Thanks again,
    Samuel

    Thread Starter JeancarloPerez

    (@jeancarloperez)

    Thanks for answer Samuel,
    I’m currently using Ajax and I’m sending some information from a form to one table into my db. I’m using this short code [ajax-file-upload unique_identifier="profile_form" permissions="logged_in" on_success_alert="Your file was successfully uploaded" set_image_source="img.image-profile"] and I believe that I should send the image attribute into my ajax to save it into my db.

    But now I have another question, Is there a way to remove the file?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get user ID who uploaded the file’ is closed to new replies.