file - Image Upload Service - Image locations and Image Identifiers -


I would like to create an image uploading service (yes, I know about images, photobooks, flickers etc) :) < / P>

I have seen that only images directory name ("IMG 294", "1646") appears in the same image as the image is located - I would like to do this.

img294 / 1646 / ** jquery kd5 **. Jpg

1) Should there be any security issues if I take this action, I know?

2) How do these sites come with small unique identifiers ("KD5")?

Thanks for any advice and assistance.

Well, for the beginning, unless you want to make the directory public, the dummy index Restrict access to public users for .html files there or just those users.

There are several ways to get to know about this for unique identifiers ... Some of my favorite information for using:

  • Unix timings (if any Unix is ​​running
  • F
  • Pseudo random number
  • Piece of original file name

With these and many other information at your fingertips It should be easy to stop conflicting duplicate image names on your server, you can collect as much as you want and add them to the string for the filename. MD5 can be placed in a database, as well as a duplicate image A method of detection You can help, so you can also save disk space.


Comments