473,543 Members | 2,496 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

multiple file upload+xmlHttpR equest

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(usin g xmlHttpRequest I think) to get addresses.
Aug 10 '08 #1
9 4490
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.c om/groups/search?q=group% 3Acomp.lang.jav ascript+xmlhttp request+multipl e+files+upload& scoring=d&filte r=0>
<http://www.jibbering.c om/faq/#FAQ2_3>
Is it easy to make javascript(usin g 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.de mon.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...@we b.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.c om/groups/search?q=group% 3Acomp.lang.jav ascript....>
<http://www.jibbering.c om/faq/#FAQ2_3>
Is it easy to make javascript(usin g 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$8 300d...@news.de mon.co.uk>
Aug 10 '08 #3
Gmail uses an iframe to do an "asynchrono us" ajax-like file upload.

On Aug 10, 3:57*pm, torso <petteri.torsso ...@gmail.comwr ote:
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...@we b.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.c om/groups/search?q=group% 3Acomp.lang.jav ascript...>
<http://www.jibbering.c om/faq/#FAQ2_3>
Is it easy to make javascript(usin g 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$8 300d...@news.de mon.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.de mon.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; "yuploadcompone nt.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.de mon.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
7751
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, nor opening a second box for display of the progress bar. I had been using the MegaUpload that was adapted from Raditha's script at...
1
1473
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 the user. Ideally this would have been developed as a website, but due to crosss doman limitation on XmlHttpRequest, I am thinking of...
1
6766
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 it to the user. Ideally this would have been developed as a website, but due to crosss doman limitation on XmlHttpRequest, I am thinking of...
7
2523
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 demo based on this article/code "Handling Multiple XMLHTTPRequest Objects" at http://www.drakware.com/articles/multijax.php, which does make mutliple...
6
7266
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 readyState is always set to 1 (loading). Ive tried using the same XMLHTTPRequest object, and making a 2nd XMLHTTPRequest object with the same...
1
4015
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 technology is implemented on more sites now than ever. Compatibility is no longer an issue (IE, Mozilla and Opera all support it), and the benefits to...
0
2306
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml">...
4
4641
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 have been successfully registered.</div>"); within 1.5 seconds. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
0
7408
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7590
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7735
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7347
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
5885
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5271
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3391
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1817
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 we have to send another system
1
968
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.