- Apr 26, 2007
- 210
- 0
- 0
I have a form which'll allow users to upload one image file at a time. I plan on keeping it this way, but I have a question. I'd like to know if it's possible for two files to be uploaded based on a selection of just that first file?
So for example if I have a file "image_blahblah.jpg", I'd like for the PHP script to also acquire the file "thumb_image_blahblah.jpg" (in the same subdirectory on disk) for upload behind the scenes. Both files have the same name, with the exception of the prefix "thumb_" on the second file, and there'll always be that second file on disk.
Thanks.
So for example if I have a file "image_blahblah.jpg", I'd like for the PHP script to also acquire the file "thumb_image_blahblah.jpg" (in the same subdirectory on disk) for upload behind the scenes. Both files have the same name, with the exception of the prefix "thumb_" on the second file, and there'll always be that second file on disk.
Thanks.
