Forum .LRN Q&A: file uploading and parsing

Collapse
Posted by Jamie Hill on
I was wondering whether there are currently any packages that allow
users to upload files and something that parses the uploaded files?

I am working on Outlook synchronization for the calendar package and
need to allow users to upload iCal files which will then be parsed by
the system to insert the correct fields into a calendar item.

Thanks,

Collapse
Posted by defunct defunct on
Well, there's file-upload. I'm just completeting a site that users it and its working ok...

As for the parser, well, I don't know iCal files look like, but if their not binary the TCL's a pretty good script tool for this kind of thing, maybe worth putting one together yourself (make a nice little addition to the OpenACS

Collapse
Posted by Jamie Hill on
Could you tell me which package/file the file-uploading is in?

The iCal files are in a text format, so it doesnt require very advanced parsing to handle it. It should be too much of a problem, but if there are any other parsers (maybe an HTML parser?) then it will help me in writing one for the iCal files.

Collapse
Posted by defunct defunct on
There is a package in you installatio called file-storage which probably does what you want (well, it does more actually but thats beside the point)..

I don't know of a parser for html, but the range of functions within OpenACS and TCL should give you what you need.