Re: How to add a file type field
The easiest way to have a field of ile type on sugar, is creating a module based on File template.
As far I know if you want to add a file field in some other module type, you will need to program all the upload logic manually. In this case you have to do basically two things:
1. Renderize a text field into a file field using custom code.
2. Program some logic_hook to get the value input in this field and upload it to your server. You also can try do that by ajax.
Rafael Queiroz Gonçalves
Advanced OMG UML Certified Professional
Sun Certified Enterprise Architect for the Java Platform
Sun Certified Programmer for the Java 2 Platform
IBM Certified Advanced Application Developer - Lotus Notes and Domino
IBM Certified Application Developer - IBM WebSphere Portlet Factory
Computer Science Mastering / UFSC - PPGCC
Bookmarks