Java Upload doesnt work

Phoca Gallery - image gallery extension
smallfreak
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 11 Apr 2011, 14:35

Re: Java Upload doesnt work

Post by smallfreak »

I had just the same problem: Neither Flash nor JAVA Upload did work.

I found the problem was, that the session token was not transferred propeprly for the upload. This results in looking like an anonymous upload to the server which has to be blocked. Unfortunately this hits another bug which did not display a propper error message but rather this "missig "success" message, that does not really help diagnosing the problem.

I certainly would have to do a file difference analysis to say for sure, but I think it was all solved with changing

Code: Select all

JRequest::checkToken( 'request' ) or jexit( 'Invalid Token' );

against

Code: Select all

JRequest::checkToken( 'get' ) or jexit( 'Invalid Token' );


at several places in "category.php".
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Java Upload doesnt work

Post by Jan »

Hmm, this I don't understand, the token with request check for post token, if there is no post, it get the get token ??? :idea:

Yes, the "not success" is really not the best solution, but this is more the question on java upload applet developer :-(

Since version 3, there is plupload upload form, which should work OK (as there are several methods for upload - flash, html5, gears, etc. etc.)


Jan
If you find Phoca extensions useful, please support the project
Post Reply