Skip to content

Problem uploading files #18

@smoscar

Description

@smoscar

The API request to upload files doesn't seem to be working, it creates the file on ActiveCollab but its size is always 0 bytes.

I am not sure if I am using the request correctly:

API::call( 'projects/1/files/files/upload', null, array(
'file[name]' => 'NAME OF THE FILE',
'file[visibility]' => 1,
'file[category_id]' => 1,
'file[body]' => 'FILE DESCRIPTION',
'file[milestone_id]' => 0,
'file[project_id]' => 1
), array(
'/ABSOLUTE_PATH/file.jpg'
));

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions