It is possible but you have to realize it will only work on browsers that have the FileAPI available - Chrome/Firefox/Safari
new Ajax.Request("fileupload.php?filename=myfile",{"postBody":$("inputfield").files[0]}); will post the contents of the file to fileupload.php then you can use file_get_contents("php://input"); to get the contents of the file and the filename will be $_GET['filename'] Jason Westbrook | T: 313-799-3770 | jwestbr...@gmail.com On Wed, Jan 9, 2013 at 12:27 PM, fntzr <fantaz...@gmail.com> wrote: > It not possible, use Flash Uploader for it, for example > http://demo.swfupload.org/**v220/simpledemo/index.php<http://demo.swfupload.org/v220/simpledemo/index.php> > . > > But with HTML5\xhr2 it will be possible. > http://dev.w3.org/2006/webapi/**FileAPI/#FileReader-interface<http://dev.w3.org/2006/webapi/FileAPI/#FileReader-interface>. > > > -- > You received this message because you are subscribed to the Google Groups > "Prototype & script.aculo.us" group. > To post to this group, send email to prototype-scriptaculous@** > googlegroups.com <prototype-scriptaculous@googlegroups.com>. > To unsubscribe from this group, send email to prototype-scriptaculous+** > unsubscr...@googlegroups.com<prototype-scriptaculous%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at http://groups.google.com/** > group/prototype-scriptaculous?**hl=en<http://groups.google.com/group/prototype-scriptaculous?hl=en> > . > > -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com. To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en.