By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,481 Members | 3,078 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,481 IT Pros & Developers. It's quick & easy.

Image uploading using ajax

P: n/a
Hi all
I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent
Oct 20 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Oct 20, 2:39*pm, sarika <sarikason...@gmail.comwrote:
Hi all
*I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent
Hi Sarika,

Use the given below link that will solve your problem,

http://www.phpclasses.org/browse/package/2759.html.

Regards,
R S
Oct 20 '08 #2

P: n/a
R*a*h*u*L wrote:
On Oct 20, 2:39 pm, sarika <sarikason...@gmail.comwrote:
>Hi all
I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent

Hi Sarika,

Use the given below link that will solve your problem,

http://www.phpclasses.org/browse/package/2759.html.
I haven't tried anything like this for a while so security
restrictions on browsers may have changed. You should at least be aware
that some browsers may have security concerns with a dynamically written
FILE input. Test.

Jeff
>
Regards,
R S
Oct 21 '08 #3

P: n/a
Jeff wrote:
R*a*h*u*L wrote:
>On Oct 20, 2:39 pm, sarika <sarikason...@gmail.comwrote:
>>Hi all
I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent

Hi Sarika,

Use the given below link that will solve your problem,

http://www.phpclasses.org/browse/package/2759.html.

I haven't tried anything like this for a while so security
restrictions on browsers may have changed. You should at least be aware
that some browsers may have security concerns with a dynamically written
FILE input. Test.

Jeff
>>
Regards,
R S
Browsers won't allow a FILE field to be filled in, either statically or
dynamically. That would be a huge security hole.

Can you imagine someone coding a page which fills in a FILE field, then
hides it control with CSS? They could access anything on your system,
and unless you look at the source, you'd never know it.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 21 '08 #4

P: n/a
On Mon, 20 Oct 2008 11:39:02 +0200, sarika <sa**********@gmail.comwrote:
Hi all
I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent
The way we used to, before javascript had any reliable
cross-common-browser httprequest, was by just 'normal' posting to a hidden
iframe, and read its return contents (or call window.parent from the
hidden loaded page). Not flashy, but very simple and it works.
--
Rik Wasmus
Oct 21 '08 #5

P: n/a
Jerry Stuckle wrote:
Jeff wrote:
>R*a*h*u*L wrote:
>>On Oct 20, 2:39 pm, sarika <sarikason...@gmail.comwrote:
Hi all
I want to upload an image in my website using ajax and php i.e
without refreshing the page i want to upload image .
Plz help its very urgent

Hi Sarika,

Use the given below link that will solve your problem,

http://www.phpclasses.org/browse/package/2759.html.

I haven't tried anything like this for a while so security
restrictions on browsers may have changed. You should at least be
aware that some browsers may have security concerns with a dynamically
written FILE input. Test.

Jeff
>>>
Regards,
R S

Browsers won't allow a FILE field to be filled in, either statically or
dynamically. That would be a huge security hole.

Can you imagine someone coding a page which fills in a FILE field, then
hides it control with CSS? They could access anything on your system,
and unless you look at the source, you'd never know it.
Absolutely. But, I've also had trouble just writing a file input
that wasn't filled out. One of the major browsers would let you fill it
in yourself, but upload would fail silently. I think it was a Moz
flavor. There really shouldn't be a security concern for a file input
that you see and fill out yourself, but there was. That may have been
"fixed", I do not know...
Jeff
>
Oct 24 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.