Skip to content

Folder upload_file method not working #92

Open
@dparis

Description

@dparis

I've got some code that looks like:

folder = client.folder_by_id(folder_id)
folder.upload_file(file_name, data)

And I'm getting an exception like Errno::ENAMETOOLONG: File name too long. It appears to be passing the data variable as the file name when creating a new file.

I've looked through the source for the upload_file method, and it looks okay, but I've also verified that file_name is just foo.csv so something's going awry.

Any ideas? Is the upload_file method available for use, or old dead code?

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