COPYRIGHT RESERVED 2009 BY MAX TSAI



Visit Max Tsai at Facebook | Twitter | atom

Friday, March 6, 2009

Alfresco 3Stable - Firefox Error on Share upload

The problem is FF3 and Flash plugin related. Some discussion is at:
http://forums.alfresco.com/en/viewtopic.php?f=9&t=15501

In summery, it started to work with FF3 after the following modification:
  1. Disable Flash component by editing file-upload.jsr:

    change:
    this.hasRequiredFlashPlayer = Alfresco.util.hasRequiredFlashPlayer(9, 0, 45)


    to:
    this.hasRequiredFlashPlayer = false

  2. Modify html-upload.js, you have to correct line 219:

    // If it hasn't load the gui (template) from the server
    217 Alfresco.util.Ajax.request(
    218 {
    219 url: Alfresco.constants.URL_SERVICECONTEXT + "components/upload/html-upload?htmlid=" + this.id,
    220 successCallback:

    to: "components/upload/html-upload?htmlid="

  3. and,
    260 /**
    261 * Render the server reponse so the contents get inserted in the Dom.
    262 * Scripts in the template, such as setMessage(), will also get run
    263 * at this moment.
    264 */
    265 this.widgets.panel.render(document.body);
    266
    267 //Remove the class hidden to display the panel
    268
    Dom.removeClass(this.id + "-dialog", "hidden");
Again, all credits go to the contributors in the forum at:
http://forums.alfresco.com/en/viewtopic.php?f=9&t=15501

No comments:

Post a Comment