Welcome Guest, Not a member yet? Register   Sign In
Is there any possibility to saving image without extension with file_upload class?
#1

[eluser]Unknown[/eluser]
I found a problem, when I want to make sure that there
is only one user having one picture file.

With the uniqueness of username, everything is ok ($config['file_name']).
But there is a problem, when an user try to re-upload
different extension of image, (s)he'll have two image file in my server...

I've done with $config['overwrite'] and also $config['file_name']...


This could be handle with PHP, is there any CI way?
It should be any I think... (if it didn't)
#2

[eluser]Atharva[/eluser]
When user uploads a new image, you can delete older image which is no more being used. So in this way, there will be only one image for a user on the server.
#3

[eluser]Unknown[/eluser]
[quote author="Atharva" date="1304960971"]When user uploads a new image, you can delete older image which is no more being used. So in this way, there will be only one image for a user on the server.[/quote]

Yes, easily...

But I still think it should be a 'feature' in next CI...




Theme © iAndrew 2016 - Forum software by © MyBB