Looking for a very simple PHP image uploader script. I’ve tried several that I found floating around on the internet and can’t get any to work. Not sure if I’m not setting up permissions properly or what but my web host tells me there shouldn’t be an issue with a PHP uploader and I must be using bad code.
So, I just need a page that will upload an image and has the following parameters:
Image can’t be more than 100kb or error message says “Please select an image that is smaller than 100kb.”
Must be .jpeg or .jpg file or error message says “Please only upload a .jpeg or .jpg file.”
The NAME of the saved image will change from whatever it was called when uploaded and have a new name that uses a variable called “logoname” + “[login to view URL]” – so if $logoname = 12345 then the name of the uploaded image would be “[login to view URL]”. -----(logoname will be defined by another script preceding this on the page. No need to create that script, I already have it.)-----
There should be a RESIZE feature so that if the image is bigger than 450 (width) x 340 (height) the image will be scaled and resized to fit in those parameters.
The name of the site is [login to view URL]
The uploaded jpeg files will be stored in [login to view URL]
So again, I just need this one page (so when uploaded it should reload the same page with a success message) and I need it to WORK on my site. Once created, I’ll upload it and test it. If it doesn’t work, I’ll need help getting it to work. Should be simple, but I’m tired of trying to figure it out myself.
You’ll be paid once it’s on the site and works.