CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2004
    Location
    Pakistan(Skardu)
    Posts
    64

    Notice: Undefined index: file in

    hey gurus
    plz help me that i upload file through Ajax and php but when i uplaod file it shows
    Notice: Undefined index: file
    without using Ajax it was working I thing there will be error in post function
    i e
    var file = document.getElementById('file').value;
    '
    '
    '
    params="title="+title+"&des="+des+"&file="+file;//cancatenation

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Notice: Undefined index: file in

    A true AJAX upload requires a protocol only accessible from IE, so far. I would suggest using a hidden iframe and making that iframe the target of the form. The script to run in the iframe can use JavaScript to alter the parent containing the iframe after the upload is complete.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured