473,511 Members | 12,017 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

multiple file upload+xmlHttpRequest

Hi

Does someone know a good tutorial for multiple file upload with
xmlHttpRequest. I am trying to do directory upload. So I could choose
directorys and upload those to the server.

Another solution would be fake multiple file upload. It's takes only
address of directorys and after choosing few address, you could push
send button and PHP would do the rest.

Can someone help me to find solutions for this problem. Is it easy to
make javascript(using xmlHttpRequest I think) to get addresses.
Aug 10 '08 #1
9 4486
torso wrote:
Does someone know a good tutorial for multiple file upload with
xmlHttpRequest. I am trying to do directory upload. So I could choose
directorys and upload those to the server.
You could not, security precautions prevent this.
Another solution would be fake multiple file upload. It's takes only
address of directorys and after choosing few address, you could push
send button and PHP would do the rest.
Security precautions prevent this as well.
Can someone help me to find solutions for this problem.
<http://groups.google.com/groups/search?q=group%3Acomp.lang.javascript+xmlhttpreque st+multiple+files+upload&scoring=d&filter=0>
<http://www.jibbering.com/faq/#FAQ2_3>
Is it easy to make javascript(using xmlHttpRequest I think) to get
addresses.
If that is a question: no.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Aug 10 '08 #2
So I get all wrong. Okey.
How I should do it.
http://www.fyneworks.com/jquery/multiple-file-upload/ there is some
kind of solution.
How that plugin is done.
On 10 elo, 23:02, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
torso wrote:
Does someone know a good tutorial for multiple file upload with
xmlHttpRequest. I am trying to do directory upload. So I could choose
directorys and upload those to the server.

You could not, security precautions prevent this.
Another solution would be fake multiple file upload. It's takes only
address of directorys and after choosing few address, you could push
send button and PHP would do the rest.

Security precautions prevent this as well.
Can someone help me to find solutions for this problem.

<http://groups.google.com/groups/search?q=group%3Acomp.lang.javascript....>
<http://www.jibbering.com/faq/#FAQ2_3>
Is it easy to make javascript(using xmlHttpRequest I think) to get
addresses.

If that is a question: no.

PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
* -- Richard Cornford, cljs, <f806at$ail$1$8300d...@news.demon.co.uk>
Aug 10 '08 #3
Gmail uses an iframe to do an "asynchronous" ajax-like file upload.

On Aug 10, 3:57*pm, torso <petteri.torsso...@gmail.comwrote:
So I get all wrong. Okey.
How I should do it.http://www.fyneworks.com/jquery/mult...e-upload/there is some
kind of solution.
How that plugin is done.

On 10 elo, 23:02, Thomas 'PointedEars' Lahn <PointedE...@web.de>
wrote:
torso wrote:
Does someone know a good tutorial for multiple file upload with
xmlHttpRequest. I am trying to do directory upload. So I could choose
directorys and upload those to the server.
You could not, security precautions prevent this.
Another solution would be fake multiple file upload. It's takes only
address of directorys and after choosing few address, you could push
send button and PHP would do the rest.
Security precautions prevent this as well.
Can someone help me to find solutions for this problem.
<http://groups.google.com/groups/search?q=group%3Acomp.lang.javascript...>
<http://www.jibbering.com/faq/#FAQ2_3>
Is it easy to make javascript(using xmlHttpRequest I think) to get
addresses.
If that is a question: no.
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
* -- Richard Cornford, cljs, <f806at$ail$1$8300d...@news.demon.co.uk>

Aug 11 '08 #4
torso meinte:
So I get all wrong. Okey.
How I should do it.
You can't. Period. All those multi-file uploaders nowadays use flash.
http://www.fyneworks.com/jquery/multiple-file-upload/ there is some
kind of solution.
How that plugin is done.
Who knows... It does *nothing* on my FF3. No, wait! "object is
undefined" in jquery-1.2.6.js line 725.

Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Aug 11 '08 #5
Gregor Kofler wrote:
torso meinte:
>So I get all wrong. Okey.
How I should do it.

You can't. Period. All those multi-file uploaders nowadays use flash.
It would seem that depends on how one defines a "multi-file uploader".
Could you please elaborate on those uploaders that use Flash?
>http://www.fyneworks.com/jquery/multiple-file-upload/ there is some
kind of solution.
How that plugin is done.

Who knows... It does *nothing* on my FF3.
WFM in Fx 3.0.1 on WinXP SP3 to the extent that I can select files
one-by-one which "hides" file inputs (position: absolute; top: -3000px) for
which I have selected a file, then creates a new empty file input in the
original place. If the form was submitted, all file inputs were submitted.
Say about jQuery all you want, but this one is not an entirely stupid approach.
No, wait! "object is undefined" in jquery-1.2.6.js line 725.
I cannot reproduce that. What have you done to get this error?
PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Aug 11 '08 #6
On Aug 11, 11:01 am, Thomas PointedEars Lahn wrote:
Gregor Kofler wrote:
<snip>
>No, wait! "object is undefined" in jquery-1.2.6.js line 725.

I cannot reproduce that. What have you done to get this error?
For me, just loading the page in to IE 6 brings up the error message
"Line: 726; 'length' is null or not an object". Given IE's tendency to
report error line numbers at least one off the real line that looks
suspiciously like the same error on a different browser.
Aug 11 '08 #7
Thomas 'PointedEars' Lahn meinte:
Gregor Kofler wrote:
>torso meinte:
>>So I get all wrong. Okey.
How I should do it.
You can't. Period. All those multi-file uploaders nowadays use flash.

It would seem that depends on how one defines a "multi-file uploader".
Could you please elaborate on those uploaders that use Flash?
Perhaps flickr war one of the first sites to sport such a thing (well
hidden; "yuploadcomponent.swf"). From what I've read the client needs
Flash 8+.

Well, google gives me 300,000+ hits with "multiple file upload flash".

Perhaps this one
http://www.saschawenning.de/labor/flash8/fileUpload/
is among the rather lightweight ones.
>>http://www.fyneworks.com/jquery/multiple-file-upload/ there is some
kind of solution.
How that plugin is done.
Who knows... It does *nothing* on my FF3.

WFM in Fx 3.0.1 on WinXP SP3 to the extent that I can select files
one-by-one which "hides" file inputs (position: absolute; top: -3000px) for
which I have selected a file, then creates a new empty file input in the
original place. If the form was submitted, all file inputs were submitted.
Ah. I was always expecting some "special" upload dialog (and never chose
anything) - yes, seems to be a simple, relatively hassle-free approach.
However, you are still stuck to "pick one file after another".
Say about jQuery all you want, but this one is not an entirely stupid approach.
The approach is simple and - I suppose - working on most current
browsers. The script itself is 16k, gives you the creeps upon reading,
and can be done with half the lines as well - without the 100k+ jQuery
sinker.
>No, wait! "object is undefined" in jquery-1.2.6.js line 725.

I cannot reproduce that. What have you done to get this error?
Opened the page.

Gregor
--
http://photo.gregorkofler.at ::: Landschafts- und Reisefotografie
http://web.gregorkofler.com ::: meine JS-Spielwiese
http://www.image2d.com ::: Bildagentur für den alpinen Raum
Aug 11 '08 #8
Gregor Kofler wrote:
Thomas 'PointedEars' Lahn meinte:
>Gregor Kofler wrote:
>>torso meinte:
So I get all wrong. Okey.
How I should do it.
You can't. Period. All those multi-file uploaders nowadays use flash.
It would seem that depends on how one defines a "multi-file uploader".
Could you please elaborate on those uploaders that use Flash?

[...]
Well, google gives me 300,000+ hits with "multiple file upload flash".
Hence my asking :)
Perhaps this one
http://www.saschawenning.de/labor/flash8/fileUpload/
is among the rather lightweight ones.
Thanks.
> Say about jQuery all you want, but this one is not an entirely stupid approach.

The approach is simple and - I suppose - working on most current
browsers. The script itself is 16k, gives you the creeps upon reading,
and can be done with half the lines as well - without the 100k+ jQuery
sinker.
You are preaching to the choir, but you probably know that :)
>>No, wait! "object is undefined" in jquery-1.2.6.js line 725.
I cannot reproduce that. What have you done to get this error?

Opened the page.
Confirmed. Note to self: You need to enable the Console of Firebug 1.2.x
for the site explicitly, otherwise the status bar indicates no errors or
warnings.
Regards,

PointedEars
--
Prototype.js was written by people who don't know javascript for people
who don't know javascript. People who don't know javascript are not
the best source of advice on designing systems that use javascript.
-- Richard Cornford, cljs, <f8*******************@news.demon.co.uk>
Aug 11 '08 #9
Gregor Kofler wrote:
torso meinte:
>So I get all wrong. Okey.
How I should do it.

You can't. Period. All those multi-file uploaders nowadays use flash.
Well you can in Firefox 3.

Here's proof:
http://dhtmlkitchen.com/ape/example/form/Form.html

This may or may not be implemented in other browsers in the near future.

Gregor

Aug 12 '08 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
7746
by: JMB | last post by:
Hello, I was wondering if anyone knew of any projects extending the inline upload progress bar to utilize an inpage image uploader with bar, without having to refresh or go to a seperate page,...
1
1470
by: dave | last post by:
I want to design/develop an windows application that can query multiple websites (XmlHttpRequest), call number of 3rd party external webservices (SOAP) and parse/process the data and display it to...
1
6762
by: dave | last post by:
I want to design/develop an windows application (C#) that can query multiple websites (XmlHttpRequest), call number of 3rd party external webservices (SOAP) and parse/process the data and display...
7
2521
by: blueapricot416 | last post by:
Hello helpful computer people! I can't seem to get more than one request to fire simultaneously... and I have read there should be at least 2 possible (in IE) and more in Firefox. I made a...
6
7248
by: Nathan | last post by:
Can I run two XMLHTTPRequest objects at the same time? Im able to get one to work without problems. If I put a call to a function inside the first ones onreadystatechange function, the 2nd ones...
1
4013
by: geevaa | last post by:
http://www.phpbuilder.com/columns/kassemi20050606.php3 XMLHttpRequest and AJAX for PHP programmers James Kassemi Introduction: Although the concept isn't entirely new, XMLHttpRequest...
0
2304
by: wasif | last post by:
I am trying to upload file using ajax and php but having some problems. it always says that there was a problem and file is not uploaded. here is the code form and ajax code <!DOCTYPE html...
4
4637
by: sufian | last post by:
Below is the field where user enters his/her email address and the AJAX post request is sent to the server and the user sees the message: echo("<div id=\"message\" class=\"success\">Thank you! You...
0
7251
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7148
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7367
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7430
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5673
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1581
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
790
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.