Avoid duplicating entries in database table because of storing only filename and checking for entire path #8

Merged
merged 1 commit into from Mar 31, 2012

2 participants

@sangregoriopaolo

If you upload an image a second time, the row in the database is duplicated because the stored filename is

image.jpg

while when checking if the record already exists it checks for the full path

/var/www/site/webroot/upload/image/image.jpg

@krolow krolow merged commit a32f81d into krolow:master Mar 31, 2012
@krolow
Owner

hey, thank you for your patch correction. it will be also applied in the new version 1.0. thanks ;)

@sangregoriopaolo

You are welcome! Thank you for your work on this plugin ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment