Welcome Guest, Not a member yet? Register   Sign In
Profile picture
#1

[eluser]Unknown[/eluser]
Im using dx auth to handle the users
and Im using the upload / form libraries to upload the pictures to a folder based on the username
for example my username is dotpag, therefore I have a folder called "dotpag" where my pictures are stored

now I would like to know to rename the uploaded picture in order for the app to load it on the profile
because if i use a simple img src it wont find the picture on the folder
any input would be greatly appreciated
#2

[eluser]Thorpe Obazee[/eluser]
you could use rename.
#3

[eluser]Unknown[/eluser]
yea I know how to use it, but is there an event ? like on_upload() or something like that to trigger the rename ?
#4

[eluser]Thorpe Obazee[/eluser]
not that I know of.
#5

[eluser]Colin Williams[/eluser]
Just rename it right after it uploads, or are you not doing the upload yourself? If the DX_Auth class is doing it, I would just edit/overload it to do what you need.
#6

[eluser]Unknown[/eluser]
yea the members will do the upload,each member will do an upload so it has to be automated ...




Theme © iAndrew 2016 - Forum software by © MyBB