UploadFX - Multiple upload

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
User avatar
metti
Posts: 81
Joined: Tue 28. Nov 2006, 07:34
Location: Merseburg
Contact:

Post by metti »

@markus s:
Even if the fileupload doesn't work for you, you can use the fileinfo-functions of UploadFX for files you took over to "UploadFX temporary files" with the phpwcms ftp takeover.
#GeorgeWBush { position:absolute; bottom:-6ft; }
User avatar
metti
Posts: 81
Joined: Tue 28. Nov 2006, 07:34
Location: Merseburg
Contact:

Post by metti »

Diese Vorgehensweise kann unter Umständen dazu führen, dass der zweite Request mit einem negativen Response (HTTP-Error 403) beantwortet wird und der Upload scheitert. Das Problem trat bei mir auf, als ich versuchte einen Flash-Upload auf einem Apache-Server, welcher ein speziellen "Security Mod" benutzte um PHP-Exploits abzuwehren, einzurichten.
Es hat also offensichtlich irgendetwas mit dem Server zu tun.
Das könnte auch dein Problem sein. Leider kann ich dir nicht sagen, wie du es lösen kannst. Darüber wird auf der Seite auch nix erzählt. Ich geh aber davon aus, dass wenn du nicht Administrator des Servers bist, du das Problem nicht lösen können wirst. :?
#GeorgeWBush { position:absolute; bottom:-6ft; }
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

evt. lösung

Post by markus s »

hallo metti,
laut meinem provider sollte ein klammer fehler ?

seine antwort auf mein problem:
es fehlt eine klammer im post-datenstrom der zum script gesendet wird:
----------------------
[Wed Feb 14 07:06:08 2007] [error] [client 88.117.177.246] mod_security: Error processing request body: Multipart: final boundary missing [hostname "www.jeep-plangger.at"] [uri "/cms/include/inc_module/mod_uploadfx/inc_act/upload.php?PHPSESSID=56759c0934f8fb248f1440e0ebbcb946&filename=undefined"]
nützt dir diese info um mir zu helfen ?
grüße
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
User avatar
metti
Posts: 81
Joined: Tue 28. Nov 2006, 07:34
Location: Merseburg
Contact:

Post by metti »

Hm. Sehr eigenartig. Ich hab aber leider keinen Einfluss auf den Postbody. Die Uploadfunktion von Flash ist leider nicht weiter beeinflussbar (Doch nich alles Gold, was glänzt :( )
Ich hab aber vor UploadFX zusätzlich ein Javauploader mitzugeben, falls das mit Flash nicht funzt.
#GeorgeWBush { position:absolute; bottom:-6ft; }
User avatar
DeXXus
Posts: 2168
Joined: Fri 28. Nov 2003, 06:20
Location: USA - Florida

Re: evt. lösung

Post by DeXXus »

markus s wrote:[Wed Feb 14 07:06:08 2007] [error] [client 88.117.177.246] mod_security: Error processing request body: Multipart: final boundary missing [hostname "www.jeep-plangger.at"] [uri "/cms/include/inc_module/mod_uploadfx/inc_act/upload.php?PHPSESSID=56759c0934f8fb248f1440e0ebbcb946&filename=undefined"]
User avatar
metti
Posts: 81
Joined: Tue 28. Nov 2006, 07:34
Location: Merseburg
Contact:

Post by metti »

Thx Dexxus. But i don't think, that this is the cause of the problem, because the GET-var "filename" is not used in the upload script.
Anyway i fixed this and you can now find the new uploadfx.swf at my download page. Just replace the old one with this.
#GeorgeWBush { position:absolute; bottom:-6ft; }
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

Post by markus s »

hallo metti,
ist das nun schon aktuell ?
kann ich die neue version schon ziehen ?
danke
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
User avatar
metti
Posts: 81
Joined: Tue 28. Nov 2006, 07:34
Location: Merseburg
Contact:

Post by metti »

Das neue Package ist oben:
http://www.hs-merseburg.de/wecker/index.php?download
Ich hoffe, dass es jetzt für dich funktioniert.
-----------------------------------------------------
The new package is up:
http://www.hs-merseburg.de/wecker/index.php?download
#GeorgeWBush { position:absolute; bottom:-6ft; }
User avatar
metti
Posts: 81
Joined: Tue 28. Nov 2006, 07:34
Location: Merseburg
Contact:

Re: evt. lösung

Post by metti »

markus s wrote:es fehlt eine klammer im post-datenstrom der zum script gesendet wird:
----------------------
[Wed Feb 14 07:06:08 2007] [error] [client 88.117.177.246] mod_security: Error processing request body: Multipart: final boundary missing [hostname "www.jeep-plangger.at"] [uri "/cms/include/inc_module/mod_uploadfx/inc_act/upload.php?PHPSESSID=56759c0934f8fb248f1440e0ebbcb946&filename=undefined"]
Ich hab mich mal ein bissl informiert:
Verantwortlich für die Schlappe von UploadFX in deinem Fall sind zwei Sachen: Erstmal, dass die FileReference Klasse des Adobe Flash Players offensichtlich einen Bug hat und zweitens, dass mod_security (Eine Serverfirewall) diesen Bug nicht tolleriert. Sollte das Problem auch nach der Installation der neuen Version bestehen (und davon gehe ich zumindest bei dem Flash Upload aus) probier mal folgendes:
Lege im document root eine .htaccess an und schreib dort folgendes rein:

Code: Select all

<IfModule mod_security.c>
	# Turn off mod_security filtering.  
	SecFilterEngine Off

	# The below probably isn't needed, but better safe than sorry.
	SecFilterScanPOST Off
</IfModule>
Beachte bitte, dass das normalerweise nicht die Lösung des Problems sein sollte, weil mod_security ausgehebelt wird. Eine andere Lösung habe ich allerdings nicht gefunden. Was eventuell auch schon helfen könnte ist den Flash Player mal zu updaten (Ich glaub wir sind grad bei Version 9). Vielleicht haben die Adobe-Leute das ja auch "schon" gefixt.
Hoffe das hilft.
Gruß metti
#GeorgeWBush { position:absolute; bottom:-6ft; }
User avatar
markus s
Moderator
Posts: 654
Joined: Sat 16. Dec 2006, 19:21
Location: Radfeld / Tirol
Contact:

Post by markus s »

der flash player ist 9 !
danke

das java hat ein prblem beim edit - das applet verdeckt die editiermöglichkeiten.
ich probier mal das mit dem htaccess

danke
moderator
propelled by fresh air from tirol
XING|FACEBOOK|OMENTO
User avatar
metti
Posts: 81
Joined: Tue 28. Nov 2006, 07:34
Location: Merseburg
Contact:

Post by metti »

Okay. Danke für den Hinweis.

Ich lad gleich noch das gefixte Paket hoch.

Brauchst bloß drei Änderungen machen:

uploadfx.js:

Code: Select all

//Nach Zeile 137 folgendes einfügen:
  display("upload_object", "none");
//Und nach Zeile 165 folgendes einfügen:
  display("upload_object", "inline");
In der index.tmpl.php

Code: Select all

//In Zeile 114 nach 
onclick="display('editInfo', 'none'); 
//und vor  edit = null;"> folgendes einfügen:
 display('upload_object', 'inline');
(Da kannst du dir das Update sparen)
#GeorgeWBush { position:absolute; bottom:-6ft; }
Post Reply