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
signature.asc
Description: Digital signature
_______________________________________________ oae-dev mailing list [email protected] http://collab.sakaiproject.org/mailman/listinfo/oae-dev
