Javascript file upload

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sebarry
    New Member
    • Jul 2007
    • 69

    Javascript file upload

    Hi,

    Is there any way using a Ajax.Request object that a file can be uploaded from within Javascript. I have PHP but I don't want to navigate away from the HTML page back to PHP to upload the file. I have an HTML form that allows a user to create a page with images and text. I want them to be able to preview how the page will look whilst they are completing the form. I know how to use PHP to upload files through $_FILES.

    Please help,

    Sean
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    You can't use the XMLHttpRequest object for this. You can, however, use iframes as discussed in this thread.

    Comment

    Working...