ropensci / osfr

R interface to the Open Science Framework (OSF)
https://docs.ropensci.org/osfr
Other
143 stars 28 forks source link

File won't overwrite in osf_upload #127

Closed befriendabacterium closed 4 years ago

befriendabacterium commented 4 years ago

Hi there,

Thanks for this great package. I'm having trouble overwriting a file in OSF:

osf_upload(project, 'data.csv', conflicts="overwrite")

doesn't work. I get the error:

'Error: Cannot complete action: file or folder "data.csv" already exists in this location HTTP status code 409.'

I have authenticated with osf_auth and can upload files, just not overwrite. Any ideas?

Thanks Matt

aaronwolen commented 4 years ago

Thanks for posting. In your example does project point to OSF project or a directory within an OSF project?

If it's the latter then it's a known issue (#121) that will be fixed shortly.

befriendabacterium commented 4 years ago

Ah yes - it's the latter. Thanks! Have managed a workaround now by removing then re-uploading!

aaronwolen commented 4 years ago

Thanks!