The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Help uploading JPEGs via web form

Ok here is my scenario.. I have a webform on my page that when the user clicks the Browse button, it lets them choose the file on their hard drive and gets uploaded to the webserver. After that, I check the files on the FTP and they uploaded successfully.

Here is my problem.. text files and other ASCII related files upload fine. But whenever i click on a link to one of my uploaded JPEG images, it shows up in IE as red box (aka not being there) when actually it was uploaded via the web form. I think it may be something where the web form is uploading in ASCII format instead of also doing it in BINARY which is of course what JPEGs and GIFs need to be uploaded as.

Here is the contents of my upload form page which of course has the ENCTYPE set to the proper one for file uploads:

Once you solve this problem, typically the image selected by the user may not be appropriate to place on the web site - wrong dimensions or too large a file size ( 3 mb attempts are not uncommon). I can stop a big file once it is uploaded, but I don't know how to do it before. Usually, I have to get envolved anyway.