On Thu, Jul 10, 2014 at 12:27 AM, Harmanpreet Singh <harman...@gmail.com> wrote:
> You can also do it like if the conversion is expected to take
> significant time then rather making user to wait, a notification
> should be given to him/her saying that "Conversion is on progress, you
> will notified on your email address once it is completed or you can
> check it back in xyz minutes". Just like in the GrabCAD.

That can be done, but problem I previously faced was with "uploaded"
callback. Logic was
* upload files
* get the path of file in it's callback for conversion

CollectionFS has a callback for it's insert method but it seemed
callback was being fired before the file was actually uploaded which
resulted in "No such file or directory" error while trying to get it's
path. So Instead of converting g to obj during upload, i thought i
will convert file during first view. Now I am able to convert files
during viewing, like I get bunch of obj files in the same directory as
that of .g files.

But Now I am facing another problem, there seems to be no way with
which I can add those converted obj files into database using
collectionFS. CollectionFS does not seem to have any function with
which files can be inserted from server. If the files are not added
from server then I don't get a public URL of it. If I don't get the
URL, i am unable to feed it to my model viewer.

> Now push the changes to repository.
Pushed the same day. As earlier told, I am working on collectionFS
branch and not the master branch.

--
Inderpreet Singh

Ekoankar Sahai
ishwerdas.com
facebook.com/okayinder
https://kippt.com/okayinder

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to