Page is a not externally linkable
rocknbil - 5:35 pm on Jan 17, 2012 (gmt 0)
You can't do this due to security policies of browsers (at least, not with Javascript and not with the file upload object.) Imagine if you could read the user's original image size. This, inherently, wold mean you could read the path on their local computer. You could then use that to do other nasty stuff. You would then be able to read other files too. Big security hole.
You can do this with Flash, Java (not JavaSCRIPT,) and ActiveX controls which the user has allowed to be installed and allowed to access the local system to some degree.
You can upload the file without resizing, grab the original dims server side, then do your resizing and delete the original.