Photo Gallery Example

Download zip with source files -- for NEWEST (updated 3/6/04) upload form CLICK HERE (also contained in zip file)
This is not beautiful, finished code.

Download upload form UPDATED: now script will either upload new image and create new record or EDIT existing record with new file upload.
When I get time, I will add a file-delete to this so that if box is checked script may delete existing file when it uploads a new one for edit record
.

Views
UPLOAD
Gallery List

Site Menu

TABLE: Gallery    NOTES BELOW in footer

Quick Search (*)   Show all
 Exact phrase  All words  Any word
Gallery ID  Photo title (*) filename (*)      
11  cow  86xc5y8g43ul.gif 
View
Edit Delete
672  untitled  64vb3w6e22sj_11_28_2004.jpg 
View
Edit Delete
675  untitled  1e5ke7hn77xo_11_29_2004.jpg 
View
Edit Delete
676  untitled  c8zf82ci66xo_11_29_2004.bmp 
View
Edit Delete
677  untitled  omeslfovkkb1_11_29_2004.bmp 
View
Edit Delete
678  untitled  pmfsmgpwlkc2_11_29_2004.bmp 
View
Edit Delete
679  untitled  qnftmgpwllc2_11_30_2004.gif 
View
Edit Delete
680  route  wtlzsmv3wwne_12_2_2004.gif 
View
Edit Delete
681  Test  olerlfovjjb1_12_2_2004.gif 
View
Edit Delete
691  untitled  gd4jd5gmmld3_12_6_2004.jpg 
View
Edit Delete
696  untitled  zwp3wqz7ff6w_12_8_2004.jpg 
View
Edit Delete
698  untitled  gd4jc5fmwwof_12_11_2004.jpg 
View
Edit Delete
699  untitled  nkdqkenuji9z_12_11_2004.gif 
View
Edit Delete
702  untitled  vslysmv3qqi8_12_14_2004.gif 
View
Edit Delete
704  untitled  1yq5xr18wwne_12_16_2004.jpg 
View
Edit Delete
705  untitled  yvn2uoy5ttkc_12_17_2004.jpg 
View
Edit Delete
706  untitled  ytlzsmv3rri8_12_17_2004.gif 
View
Edit Delete
709  untitled  86xc5y8g43ul_12_21_2004.bmp 
View
Edit Delete
710  untitled  kh8ng9jqff5v_12_23_2004.jpg 
View
Edit Delete
712  untitled  yvo2vpy6ttlc_12_23_2004.jpg 
View
Edit Delete
Page  First Previous Next Last Add new  of 12
Records 1 to 20 of 235
For some time, I have wanted a script that would:
1. Upload images
2. Restrict file types both client-side and server-side
3. Give each file a correctly formatted, randomized name so as to avoid overwriting existing files This is also useful in the case of web communities where you have people doing uploads who upload files with unusable garbage file names that have characters such as # in them.
4. Use ASPjpeg (by Persits software)  to create thumbnails on-the-fly, because www.ReadyHosting.com servers have that component. If you don't know if your host's servers have this component, run a test for it. They may have it even if they don't advertise such.
Click for free Highly recommended thumbnailer for which you don't need Server access.

For informational purposes only. No warranties of any kind. I can't claim any of this code as my own. All I have done, as usual, is surf relentlessly for bits and pieces of code that I can use together in a script to do what I need. Acknowledgements: I have found www.aspin.com and www.planet-source-code.com to be excellent sources of information. I have relied heavily on code by Lewis Moten. Thanks to all the fine folks who have freely shared their code and coding tips!!! I use ASPmaker to automate as much code generation as possible and when necessary,  I use Note Pad to add enhancements and alterations.

My primary interest in coding is for the creation of websites for horsemen. I enjoy creating web videos to advertise horses for sale and many of my web videos appear on www.DreamHorse.com. Recently, I have begun playing with composing my own music loops. I have submitted some of them to www.flashkit.com/loops. I have very little musical talent, but as is so often the case with people who lack talent, I enjoy it a great deal anyhow. The free program, Anvil Studio ( available from www.anvilstudio.com ) makes music creation very easy even for non-musicians. I purchased a couple of the mods for it because I like it so much and because the pricing is so reasonable.

Thanks for taking a look and if you have suggestions for how to make this upload script better, let me know. --Lil