ludak
Active member
I am trying to add an image (small image per item) in my addon.
I have something like
Player ID, Player Name, Player Image
and now I would like to be able when adding a new player, editing (to be able to use picker to select image to be placed there).
Something similar is with the Avatars on main xenforo
So I see Avatar uses this
is the <xf:upload> what I should be looking at?
Is there a sample of this somewhere, I was not able to find it in docs or searching through the forums.
Also, where is the image stored (as blob in DB, or on fileserver). Please share some samples.
I guess I am seeing it now in $_FILES.
But where do I store it? how to make sure its separate location from xenforo? And what does the process of saving it looks like/ Does db have just a path to image file?
I would really appreciate help on this. THANKS!!!
I have something like
Player ID, Player Name, Player Image
and now I would like to be able when adding a new player, editing (to be able to use picker to select image to be placed there).
Something similar is with the Avatars on main xenforo
So I see Avatar uses this
Code:
<xf:upload name="upload" class="js-uploadAvatar" accept=".gif,.jpeg,.jpg,.jpe,.png" />
is the <xf:upload> what I should be looking at?
Is there a sample of this somewhere, I was not able to find it in docs or searching through the forums.
Also, where is the image stored (as blob in DB, or on fileserver). Please share some samples.
I guess I am seeing it now in $_FILES.
But where do I store it? how to make sure its separate location from xenforo? And what does the process of saving it looks like/ Does db have just a path to image file?
I would really appreciate help on this. THANKS!!!
Last edited: