uploading a file in core module

I have created a file type field in accounts module and I want the uploads files to get saved in my custom path rather than in uploads folder can any one help me out ?
Parents Reply
  • Hi All,

                I am also unable to create a file type field for the contracts module following the above links.

    I am able tou upload but the file is not saving.

    Can any one please provide an insight in to this.

    File:custom/Extension/modules/Contracts/Ext/Vardefs/file.php

    <?php

    $GLOBALS['dictionary']['Contract']['fields']['filename'] = array (

         'name' => 'filename',

         'vname' => 'LBL_FILENAME',

         'type' => 'file',

         'dbType' => 'varchar',

         'len' => '255',

         'reportable' => true,

         'comment' => 'File name associated with the note (attachment)',

         'importable' => false,

    );

    $GLOBALS['dictionary']['Contract']['fields']['file_mime_type'] = array(

         'name' => 'file_mime_type',

         'vname' => 'LBL_FILE_MIME_TYPE',

         'type' => 'varchar',

         'len' => '100',

         'comment' => 'Attachment MIME type',

         'importable' => false,

    );

    $GLOBALS['dictionary']['Contract']['fields']['file_url'] = array (

         'name' => 'file_url',

         'vname' => 'LBL_FILE_URL',

         'type' => 'varchar',

         'source' => 'non-db',

         'reportable' => false,

         'comment' => 'Path to file (can be URL)',

         'importable' => false,

    );

    I  have done a qrr went to studio and added the field for the edit and detail view.

    The upload button is coming but the file is not saving.

    Regards

    Sidhu Tevfik Tümer Angel Magana David López

Children