Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #8129
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Upload and Preview Image with Javascript with making any server calls |
| Date | 2011-11-08 04:51 -0800 |
| Organization | http://groups.google.com |
| Message-ID | <2bd2fc51-c63d-4570-9aca-9f657105bc6e@e15g2000vba.googlegroups.com> (permalink) |
| References | <10505808.1085.1320594668508.JavaMail.geo-discussion-forums@yqhd1> |
On Nov 6, 9:51 am, kiran <kiranmb...@gmail.com> wrote: > HI All, > > I have a requirement here wherein I have to upload a image preferably JPEG and Preview it to the users.I know there are some ways of doing it like uploading the image and storing it in the server via ajax or server side programs and then bringing it back to the user for preview. But I do not want to go that way, > > I was thinking it is possible that user upload the image, JS somehow stores the image data in the variable in the runtime and then displays it in the predefined area to the user and once he is satisfed with image, then maybe he can save it to the server. See this: <https://hacks.mozilla.org/2011/01/how-to-develop-a-html5-image- uploader/> Note that for older browsers this will not work. For example, in Internet explorer you cannot get the path to the file but instead a fakepath. For non-compliant browsers you'll have to use the server or fallback to Java/Flash/HTA to do the file browsing portion to get the appropriate path.
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Upload and Preview Image with Javascript with making any server calls kiran <kiranmbadi@gmail.com> - 2011-11-06 07:51 -0800
Re: Upload and Preview Image with Javascript with making any server calls kiran <kiranmbadi@gmail.com> - 2011-11-07 16:27 -0800
Re: Upload and Preview Image with Javascript with making any server calls Elegie <elegie@anonymous.invalid> - 2011-11-08 10:06 +0100
Re: Upload and Preview Image with Javascript with making any server calls "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2011-11-08 04:51 -0800
Re: Upload and Preview Image with Javascript with making any server calls kiran <kiranmbadi@gmail.com> - 2011-11-08 17:21 -0800
Re: Upload and Preview Image with Javascript with making any server calls Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-11-09 02:51 +0100
Re: Upload and Preview Image with Javascript with making any server calls kiran <kiranmbadi@gmail.com> - 2011-11-08 17:22 -0800
Re: Upload and Preview Image with Javascript with making any server calls kiran <kiranmbadi@gmail.com> - 2011-11-08 19:20 -0800
csiph-web