Autor Beitrag
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Di 04.10.11 07:26 
Hi,

ich muß auf einer Webseite ein Formular machen welches erlaubt eine beliebige anzahl an Dateien gleichzeitig hochzuladen.

Ich habe solche Multi-File-Uploader schon hier und da mal gesehen, meistens basierten die aber auf Flash.
Daher die frage, kennt jemand ein hübsches Script welches nicht Flash benutzt um soetwas zu realisieren?

Notfalls mach ich es auch gern selbst, hab aber von JavaScript nicht so wirklich Ahnung..

Danke,
Aya


Moderiert von user profile iconChristian S.: Topic aus Off Topic verschoben am So 15.07.2012 um 13:00

_________________
Aya
I aim for my endless dreams and I know they will come true!
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Di 04.10.11 16:40 
Du möchtest vielleicht sowas als Grundlage: Ajax-Upload.

Das Problem, weswegen Flash verwendet wird: Progressbars gehen sonst nur mit ziemlichem Aufwand auf Serverseite.

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 04.10.11 17:12 
user profile iconMartok hat folgendes geschrieben Zum zitierten Posting springen:
Das Problem, weswegen Flash verwendet wird: Progressbars gehen sonst nur mit ziemlichem Aufwand auf Serverseite.

Wieso? Eigentlich ganz simpel, wenn man nen C-Compiler bedienen kann ;-) Wobei das Teil inzwischen auch als Debian-Package verfügbar ist (glaub sogar in der aktuellsten Source-Version, wenn die Debilian-Guys das mal hinbekommen haben).

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Di 04.10.11 17:50 
Ja, ich kenne deinen Beitrag[*]. Da fehlen aber die Patches, die du laut IRC später noch eingearbeitet hattest... Deswegen ja "ziemlicher Aufwand" ;)

Außerdem hat man das Problem, dass man eben für jedes Update ein GET durchkriegen muss. Wenn die Leitung schon mit dem Upload gesättigt ist kann das schwierig werden (Ja, es gibt noch Leute mit weniger als 16 MBit!)


[*] btw solltest du mal das eval() da rausoperieren...

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."
BenBE
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 8721
Erhaltene Danke: 191

Win95, Win98SE, Win2K, WinXP
D1S, D3S, D4S, D5E, D6E, D7E, D9PE, D10E, D12P, DXEP, L0.9\FPC2.0
BeitragVerfasst: Di 04.10.11 18:56 
user profile iconMartok hat folgendes geschrieben Zum zitierten Posting springen:
Ja, ich kenne deinen Beitrag[*]. Da fehlen aber die Patches, die du laut IRC später noch eingearbeitet hattest... Deswegen ja "ziemlicher Aufwand" ;)

Die sind doch schon ewig drinnen ;-)

user profile iconMartok hat folgendes geschrieben Zum zitierten Posting springen:
Außerdem hat man das Problem, dass man eben für jedes Update ein GET durchkriegen muss. Wenn die Leitung schon mit dem Upload gesättigt ist kann das schwierig werden (Ja, es gibt noch Leute mit weniger als 16 MBit!)

Hier kann man aber durchaus auf Client-Seite optimieren ;-) Man bekommt in den aktuelleren Versionen nämlich nicht nur den Fortschritt, sondern auch den Upload-Speed und ne ETA.

user profile iconMartok hat folgendes geschrieben Zum zitierten Posting springen:
[*] btw solltest du mal das eval() da rausoperieren...

ausblenden Quelltext
1:
s/eval/JSON.parse/g					


Besser? Auch der zugehörige Patch ist schon ewig drinnen.

Wie gesagt: apt-get install -y libapache2-mod-upload-progress

_________________
Anyone who is capable of being elected president should on no account be allowed to do the job.
Ich code EdgeMonkey - In dubio pro Setting.