Re: Re: uploading files... necessary Ajax?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" name="stage" value="1">
> <input type="submit" value="submit">
> 
> We can't in some way use the ajax post method to send the file in the 
> background without a refresh (other than using iframe) is that 
> correct? Or am I completely missing something here?
> [/snip]
> 
> That is correct. Without an IFRAME you cannot upload a file without a
> refresh. 

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.

of course as Colin pointed out this leaves much to be desired in terms of usability
so for practical purposes you'll want to use an Iframe hack or upload widget built
with java or flash.

> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux