Dear OpenMeetings Developers,

From a menu item, we would like to load a PDF file to whiteboard from a location on OpenMeetings server (say from "uploads" directory).

To do this, is it required to generate "fileHash" first? If yes or no, then how to do it?

When we study the uploadWindowExplorer and fileUpload classes, all we want to do is call the following: canvas._drawarea.parent.parent.clearAreaAndAddImage(this.generateFileLink(tArrayValueObj.fileHash),0,0, canvas.getUrl() +'DownloadHandler', tArrayValueObj.fileHash,"videoconf1","/","files",hib.conferencedomain);

Can we call this directly from our Menu button, and how to get a fileHash for the file we placed in uploads directory. Can we avoid using "tArrayValueObj" for this task?

What is the role of "onCompleteByRemote", is it irrelevant in this case?

Sincerely,

--
Susheel Jalali
Coscend Communications Solutions
www.Coscend.com
 ------------------------------------------------------------------
CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail Messages from Coscend Communications Solutions' posted at: http://www.Coscend.com/Terms_and_Conditions.html


On 11/01/15 12:40, Maxim Solodovnik wrote:
> On Sat, Oct 31, 2015 at 11:41 PM, Susheel Jalali <[email protected]
>> wrote:
>
>> Dear OpenMeetings Developers,
>>
>> We would like to upload a static PDF file from a Menu item.  This file
>> will serve as the background on whiteboard.
>>
>> Current file upload occurs via the LZX class 'uploadWindowExplorer', which
>> in turn calls "servletName:'file.upload'".
>>
>> Is this used to create an HTTPServletRequest, which is handled in the
>> method 'handleFileUpload' of Java class 'UploadController'.  Is that
>> correct?
>>
>
> yes
> uploadWindowExplorer has an option to send file to WB, just use it :)
>
>
>> We are seeking a pointer to help us understand how or where the Whiteboard >> is referenced or accessed for the file upload directly. We would like to
>> use that code snippet to:
>> a. bypass the popup dialog
>> b. without any user/moderator interaction
>> c. from the Menu button 'onclick' handler, directly load a server-local
>> file from known server path, to the whiteboard.
>> d. No conversion needed, as it is already PDF.
>>
>> Is there a specific method and directory we need to use?
>>
>> ---
>> Context code:
>>
>>  <class name="conferenceMenubar" .... >
>>  <view name="itemlist" . . . >
>>    //  In Itemlist of conferenceMenubar.lzx
>>     <graphPdfUpload  name="_graphPdfbtn"
>>      . . . . />
>> . . .
>>    </view>
>>  </class>
>>
>>  <class name="graphPdfUpload" extends="view" height="34"
>>      width=. . .     visible= ". . . "
>>          >
>> . . . .
>>
>>    <handler name="onclick"  >
>>      //   Call the File Upload servlet code with parameters or
>>      //configured values for:
>>      //  a.  fixed static filepath and filename of PDF Graph paper
>>      //  b.  path or handle for whiteboard display
>>      //  c.  (Perhaps) servletName:'file.upload'
>>    </handler>
>>
>> . . .
>>    <labelTooltip name="_textToolTip" labelid="1684" multiline="false" />
>>  </class>
>>
>> --
>>
>> Sincerely,
>>
>> Susheel Jalali
>> Coscend Communications Solutions
>> www.Coscend.com
>> ------------------------------------------------------------------
>> CONFIDENTIALITY NOTICE: See 'Confidentiality Notice Regarding E-mail
>> Messages from Coscend Communications Solutions' posted at:
>> http://www.Coscend.com/Terms_and_Conditions.html
>>

Reply via email to