Hello,

I was wondering if this is possible to do:

I want to upload an image using Ajax.request like such:

var form = $('addimage');
 new Ajax.Request('http://myurl.com/uploadImage.php', {
    method: 'post',
    parameters: { image: $(form['image']).getValue() }
 }

So far I haven't been able to access the image with php, I have been using 
$_FILES['file']['name'] to try and access the image, but I can't get it.

Do I have to use an iframe for this, or will it work somehow using Ajax.request 
and trying to get the file in the form?

Thanks,

-Andy Daykin

--

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-scriptacul...@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.


Reply via email to