I've been looking everywhere for a secure script that will allow a user to upload a single photo via their browser and write the photo's correct image tag <img src="foldername/photoname.jpg"> on the fly to a newly created html (or php) page, along with a text description of that photo.
There are of course many gallery type thumbnail scripts available (some of which are very sophisticated), but so far it's been impossible to find one that will simply do the following after the user arrives at the script's online form page:
-- The first form field is a textarea that allows the user to type in some wording which describes the photo that will be displayed;
-- then they navigate to that photo on their harddrive via a "Browse" button and select it;
-- at the final fields they enter their own name and email address;
-- click submit ==> the photo is uploaded and a basic page is generated with the descriptive text at the top and the picture immediately below.
-- in order to keep each uploaded page secure (so someone else does not overwrite it), the script gives each newly created page it's own unique name. For example, the first one could be saved as "upload1.html" ; the next is "upload2.html" ; then "upload3.html", etc. The user does not select the name -- only the script itself can do this, and if absolutely necessary, it could be a randomly generated name (for ex, Y13eu79Hv1.html).
Ideally such a script would have a separate config file that would allow the site owner to...
-- identify a common header.txt and footer.txt so each new page has consistency;
-- identify exactly which folder all the images will go into;
-- identify which folder will hold all the html pages (could be the same as images);
-- the uploaded images could be of varying dimensions however an uppermost limit could be put on the maximum file size of each photo (for ex, 100 Kš;
-- for maximum security only .jpg, .png, or .gif file extensions would be allowed for uploading from the visitors harddrive;
-- a maximum "total characters" limit could be assigned to the textarea;
-- notify the site owner by an email message that included the name of the new html page, and the name/email of the person who uploaded it;
-- also send a confirmation email to the person doing the uploading, that included the name/address of the new html page;
-- and ideally there would be a password protected "admin" panel with a list of all pages currently saved in the upload folder, so the site owner could selectively delete.
My above description is complicated but in some ways it seems that this may actually be somewhat simpler than many of the "gallery creation" scripts publicly available. For example, there is no need to generate thumbnails or perform any image manipulation. It would not even be necessary for the script to define the exact width & height of the photo, as it would display fine with only <img src="foldername/photoname.jpg">.
I do realize that this is a LOT to expect from an archived script (and perhaps it can't even be done!), however if anyone has seen anything that approaches this, I'd very much appreciate the reference... thanks in advance for any feedback...