Skip to content

Error when upload a file #2

Description

@tbob77

File "/usr/local/lib/python2.7/dist-packages/verystream/verystream.py", line 264, in upload_file
headers = {"Content-Type": data.content_type}
NameError: global name 'data' is not defined

The content of my script:

from verystream import Verystream

vs = Verystream('Mylogin', 'Mykey')

uploaded_file_info = vs.upload_file('/tmp/file.txt')
print(uploaded_file_info)

File info and Account info requests are working OK!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions