0

The server is temporarily out of service while Image upload

asked 2012-03-20 15:40:03 +0800

ajaidka gravatar image ajaidka
196 4

I am uploading image files (using zk 5.0.9). After upload I refresh the ui to show thumbnails of uploaded images.

But sometimes after upload is done, I see the following error in a popup

"The server is temporarily out of service.
Would you like to try again?

(illegal character (SyntaxError))"

There is not exception thrown, I dont have any clue what is causing the problem.
I have logs enabled at every setup, flow seems to be working fine, but this error is coming randomly.


here is my upload tag

<button sclass="attachBtn" tooltiptext="Basic single file uploader"
upload="true" label="Upload image" onUpload=
"platformoptionsFlagsImageComposerWin$composer.uploadOptionFlagImage(event.media);"/>

will appreciate anyhelp

Regards
Ajaidka

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-03-27 09:31:07 +0800

ajaidka gravatar image ajaidka
196 4

I found the solution, I don't know how it is working right now, but it has fixed the issue.

In my composer I was uploading in method "uploadOptionFlagImage(Media media).
But now I moved my uploading code in another method "onImageFileUpload" and invoked it in "uploadOptionFlagImage(Media media) using
" Events.echoEvent("onImageFileUpload", this.self, null); "

This solved the issue, I guess Events.echoEvent triggers another event thread, and just ignored/skipped the error that I was facing previously.

Any thoughts???

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2012-03-20 15:40:03 +0800

Seen: 467 times

Last updated: Mar 27 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More