Status
Not open for further replies.

NightMare

Active Member
1,732
2010
247
0
Hey guys,
some of you knows that i run imgflex.com , today some of my friends reported me weird issue that when he uploaded a pic (let's say its screen of a movie)
after few days this pic change to another pic (porn one or another screen for different movie) i think he did something wrong , but today this happened with me too ?
so anyone knows about that ?
and any ideas how to stop it ?

thanks in advance
 
11 comments
You're probably using Chevereto :|

I used that script before in my old gay porn site and some of the posts' image was replaced with another one so i changed it with a custom remote upload script :P. Change ur script now!
 
Yes your problem is chevereto.
EpicImagehost is based on it and suffered the same issue as well.

The script does check if the filename exists, and if it does, it renames the file you are uploading. But what it doesn't do is check if the renamed file exists :D

A simple while-loop did the trick.

I edited the original file too much to just paste the loop, it wouldn't work for you. But if you have basic PHP knowledge you'll know how to do it.
 
Solutions:
- Increase the maximum chars of an image filename. That gives you more space to store files as they're randomly named based on the no. of chars you defined. You'll need php knowledge for this.

- Based on the above, execute a while loop that ensures that no 2 images in a directory are the same name. You'll need php knowledge for this.

- Change the directory the images are uploaded to, and get that directory echo'd in results (should be on controlling var). You'll need php knowledge for this.
 
Status
Not open for further replies.
Back
Top