Image uploading using ajax

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sarika

    Image uploading using ajax

    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
  • R*a*h*u*L

    #2
    Re: Image uploading using ajax

    On Oct 20, 2:39 pm, sarika <sarikason...@g mail.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

    Comment

    • Jeff

      #3
      Re: Image uploading using ajax

      R*a*h*u*L wrote:
      On Oct 20, 2:39 pm, sarika <sarikason...@g mail.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

      Comment

      • Jerry Stuckle

        #4
        Re: Image uploading using ajax

        Jeff wrote:
        R*a*h*u*L wrote:
        >On Oct 20, 2:39 pm, sarika <sarikason...@g mail.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.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        • Rik Wasmus

          #5
          Re: Image uploading using ajax

          On Mon, 20 Oct 2008 11:39:02 +0200, sarika <sarikasoni12@g mail.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

          Comment

          • Jeff

            #6
            Re: Image uploading using ajax

            Jerry Stuckle wrote:
            Jeff wrote:
            >R*a*h*u*L wrote:
            >>On Oct 20, 2:39 pm, sarika <sarikason...@g mail.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
            >

            Comment

            Working...