Fixed the file upload problem
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@119 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
parent
c5dd4cfc4b
commit
2cf84e4f98
@ -45,7 +45,7 @@ package org.bigbluebutton.common
|
||||
|
||||
public static var red5Host:String = HTML_RED5_HOST;
|
||||
public static var presentationHost:String = HTML_PRES_HOST;
|
||||
public static var relativeFileUpload:String = NEW_RELATIVE_FILE_UPLOAD;
|
||||
public static var relativeFileUpload:String = OLD_RELATIVE_FILE_UPLOAD;
|
||||
|
||||
/**
|
||||
* If the client is being run from a server, the URLs will be retrieved from the index.template.html
|
||||
|
@ -36,6 +36,7 @@ package org.bigbluebutton.modules.presentation.model
|
||||
import org.puremvc.as3.multicore.interfaces.IMediator;
|
||||
import org.puremvc.as3.multicore.interfaces.INotification;
|
||||
import org.puremvc.as3.multicore.patterns.mediator.Mediator;
|
||||
import org.bigbluebutton.modules.log.LogModuleFacade;
|
||||
|
||||
/**
|
||||
* The PresentationApplication class is the ApplicationMediator class of the Presentation Module
|
||||
@ -58,6 +59,7 @@ package org.bigbluebutton.modules.presentation.model
|
||||
private var _userid : Number;
|
||||
private var _room : String;
|
||||
private var _docServiceAddress : String = "http://localhost:8080";
|
||||
private var log : LogModuleFacade = LogModuleFacade.getInstance("LogModule");
|
||||
|
||||
/**
|
||||
* The default constructor
|
||||
@ -141,10 +143,12 @@ package org.bigbluebutton.modules.presentation.model
|
||||
*/
|
||||
public function uploadPresentation(fileToUpload : FileReference) : void
|
||||
{
|
||||
log.presentation("In uploadPresentation()... " + Constants.relativeFileUpload + "/upload");
|
||||
var fullUri : String = _docServiceAddress + Constants.relativeFileUpload + "/upload";
|
||||
|
||||
var service:FileUploadService = new FileUploadService(fullUri, _room);
|
||||
facade.registerProxy(service);
|
||||
log.presentation("using flash FileUploadService...");
|
||||
service.upload(fileToUpload);
|
||||
}
|
||||
|
||||
|
@ -31,7 +31,8 @@ package org.bigbluebutton.modules.presentation.view
|
||||
import org.puremvc.as3.multicore.interfaces.IMediator;
|
||||
import org.puremvc.as3.multicore.interfaces.INotification;
|
||||
import org.puremvc.as3.multicore.patterns.mediator.Mediator;
|
||||
|
||||
import org.bigbluebutton.modules.log.LogModuleFacade;
|
||||
|
||||
/**
|
||||
* This is the Mediator class for the FileUploadWindow component
|
||||
* <p>
|
||||
@ -46,6 +47,7 @@ package org.bigbluebutton.modules.presentation.view
|
||||
public static const START_UPLOAD:String = "Start Upload";
|
||||
public static const CLOSE_UPLOAD_WINDOW:String = "Close File Upload Window";
|
||||
public static const SELECT_FILE:String = "Select File";
|
||||
private var log : LogModuleFacade = LogModuleFacade.getInstance("LogModule");
|
||||
|
||||
private var fileToUpload:FileReference = new FileReference();
|
||||
// Var to determine how to handle okCancelBtn click
|
||||
@ -81,6 +83,7 @@ package org.bigbluebutton.modules.presentation.view
|
||||
*
|
||||
*/
|
||||
private function startUpload(e:Event):void{
|
||||
log.presentation("In startUpload()...")
|
||||
PresentationFacade.getInstance().presentationApp.uploadPresentation(fileToUpload);
|
||||
fileUploadWindow.progBarLbl.visible = true;
|
||||
fileUploadWindow.progressBar.visible = true;
|
||||
|
Loading…
Reference in New Issue
Block a user