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
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
).
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
[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
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
[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
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
[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:
[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
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
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
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
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
[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
-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
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
16 matches
Mail list logo