Hi Jelta,

Sadly we don't yet have an API function in the frontend that takes care of file 
uploads for you.
However, we do use a jquery library (jquery fileupload) that makes it really 
easy to select and upload files.
I suggest you take a look at the 'uploadnewversion' widget. It's the most basic 
example of a form upload in our system.

Hope to help
- Bert

On 18 Jul 2012, at 12:48, Jelte Fennema wrote:

> Thanks for your reply, but the reply I was hoping for was the backend API 
> functions I had to call to have a form upload a file. 
> I will take a further look at the newaddcontent widget to try and figure out 
> what functions it calls, but any further help would be greatly appriciated.
> 
> Jelte
> 
> On Mon, Jul 16, 2012 at 10:34 PM, D. Stuart Freeman 
> <[email protected]> wrote:
> You can include the file upload widget in your widget. Try doing
> something like:
> 
> $uploadContentLink.bind("click", function() {
>   $(window).trigger("init.newaddcontent.sakai");
>   return false;
> });
> 
> On Thu, Jul 12, 2012 at 10:29:57AM +0200, Jelte Fennema wrote:
> >    Hey everyone,
> >    I've been making some widgets that require an url to a file uploaded by
> >    the user.
> >    Right now you have to upload the file first using the content uploader 
> > and
> >    then copy the link to the file into a text field in the settings window
> >    for the widget.
> >    It would be much nicer to just have upload functionality in the widget
> >    settings itself. Is this possible?
> >    Regards,
> >    Jelte
> 
> > _______________________________________________
> > oae-dev mailing list
> > [email protected]
> > http://collab.sakaiproject.org/mailman/listinfo/oae-dev
> 
> 
> --
> D. Stuart Freeman
> Georgia Institute of Technology
> 
> _______________________________________________
> oae-dev mailing list
> [email protected]
> http://collab.sakaiproject.org/mailman/listinfo/oae-dev

_______________________________________________
oae-dev mailing list
[email protected]
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to