Dear Maxim,
Is there any guide about how 'fileHash' is generated on a file that is
already present in the OpenMeetings Server?
The examples we ran into show how it is used, but not how it is created.
It seems that for actually uploaded files, "onCompleteByRemote" is a
callback method that gets called with fileHash remotely when upload is
complete. For a local file, can we bypass this remote call and generate
the fileHash in the 'onclick' handler itself?
Also, is the 'hib.conferencedomain' value accessible from the onclick
handler of a menu button, or is there a better way to access it?
Regards,
Susheel Jalali
Coscend Communications Solutions
www.Coscend.com <http://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
<http://www.coscendcommunications.com/Terms_and_Conditions.html>
On 11/08/15 18:23, Susheel Jalali wrote:
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
--
Regards,
Susheel Jalali
Coscend Communications Solutions
www.Coscend.com <http://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
<http://www.coscendcommunications.com/Terms_and_Conditions.html>