Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Colin Guthrie wrote: T.Lensselink wrote: On Wed, 21 Nov 2007 08:38:18 -0600, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Seems to me Pere want's to do an upload without reloading the whole page. [/snip] The problem is that you cannot upload files using Ajax alone. But you can do it

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread tedd
Hi gang: So that I can get my head around this, are all of you saying there is no Ajax equivalent of: form action=index.php enctype=multipart/form-data method=post input type=hidden name=MAX_FILE_SIZE value=2048000 input name=userfile type=file input type=hidden name=stage value=1 input

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Andrés Robinet
). Hope not to be far from thruth Rob (sorry, top posting, we've all read the rest of it :D) -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 2:13 PM To: Jochem Maas; Colin Guthrie Cc: php-general@lists.php.net Subject: Re: [PHP] Re: uploading

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jay Blanchard
[snip] That is correct. Without an IFRAME you cannot upload a file without a refresh. [/snip] Take Two. You could also open another window, but that kinda defeats the purpose. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Jay Blanchard wrote: [snip] So that I can get my head around this, are all of you saying there is no Ajax equivalent of: form action=index.php enctype=multipart/form-data method=post input type=hidden name=MAX_FILE_SIZE value=2048000 input name=userfile type=file input type=hidden

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jay Blanchard
[snip] So that I can get my head around this, are all of you saying there is no Ajax equivalent of: form action=index.php enctype=multipart/form-data method=post input type=hidden name=MAX_FILE_SIZE value=2048000 input name=userfile type=file input type=hidden name=stage value=1 input

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread tedd
At 11:32 AM -0600 11/21/07, Jay Blanchard wrote: [snip] huh? if I post a file to a script that returns a 204 status and nothing else then the page should not change in the browser. [/snip] True, the missing piece is that the post cannot move the file up to the server. Ahhh, so that's it. My

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jay Blanchard
[snip] huh? if I post a file to a script that returns a 204 status and nothing else then the page should not change in the browser. [/snip] True, the missing piece is that the post cannot move the file up to the server. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jay Blanchard
[snip] Ahhh, so that's it. My twitchy little brain was thinking if I can send arguments to the server via ajax, then why can't I send multipart/form-data? After all, data is data right? It might be too cpu intensive, but I can imagine js breaking down an image file in packets and then sending

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
tedd wrote: At 12:23 PM -0600 11/21/07, Jay Blanchard wrote: [snip] But, take a look at this: http://www.captain.at/ajax-file-upload.php They look like their blowing the same wind. [/snip] Yep, look at all of the gotchas. Well, I wasn't able to get it to work -- I couldn't find

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jochem Maas
Jay Blanchard wrote: [snip] huh? if I post a file to a script that returns a 204 status and nothing else then the page should not change in the browser. [/snip] True, the missing piece is that the post cannot move the file up to the server. I was referring to a standard POST not using

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread tedd
At 12:23 PM -0600 11/21/07, Jay Blanchard wrote: [snip] But, take a look at this: http://www.captain.at/ajax-file-upload.php They look like their blowing the same wind. [/snip] Yep, look at all of the gotchas. Well, I wasn't able to get it to work -- I couldn't find where to change the FF

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread tedd
At 11:49 AM -0600 11/21/07, Jay Blanchard wrote: [snip] Ahhh, so that's it. My twitchy little brain was thinking if I can send arguments to the server via ajax, then why can't I send multipart/form-data? After all, data is data right? It might be too cpu intensive, but I can imagine js

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Jay Blanchard
[snip] But, take a look at this: http://www.captain.at/ajax-file-upload.php They look like their blowing the same wind. [/snip] Yep, look at all of the gotchas. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread Andrés Robinet
-Original Message- From: Jay Blanchard [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 3:24 PM To: tedd; Jochem Maas Cc: Colin Guthrie; php-general@lists.php.net Subject: RE: [PHP] Re: uploading files... necessary Ajax? [snip] But, take a look at this: http

Re: [PHP] Re: uploading files... necessary Ajax?

2007-11-21 Thread tedd
At 8:03 PM +0100 11/21/07, Jochem Maas wrote: tedd wrote: Well, I wasn't able to get it to work -- I couldn't find where to change the FF settings (Mac). type 'about:config' into the address bar :-) I know I'll get a big argument from all of you about this, but sometimes I can be pretty