Page 2 of 2

Posted: Tue 13. Feb 2007, 23:51
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.

Posted: Wed 14. Feb 2007, 00:12
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. :?

evt. lösung

Posted: Wed 14. Feb 2007, 17:48
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

Posted: Wed 14. Feb 2007, 20:27
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.

Re: evt. lösung

Posted: Wed 14. Feb 2007, 22:19
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"]

Posted: Wed 14. Feb 2007, 23:23
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.

Posted: Wed 14. Feb 2007, 23:53
by markus s
hallo metti,
ist das nun schon aktuell ?
kann ich die neue version schon ziehen ?
danke

Posted: Thu 15. Feb 2007, 00:04
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

Re: evt. lösung

Posted: Thu 15. Feb 2007, 06:24
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

Posted: Fri 16. Feb 2007, 10:23
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

Posted: Sat 17. Feb 2007, 10:25
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)