Skip to content

Commit

Permalink
fix new upload api
Browse files Browse the repository at this point in the history
  • Loading branch information
eblondel committed Nov 24, 2021
1 parent 47379f8 commit 65e8298
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/ZenodoManager.R
Original file line number Diff line number Diff line change
Expand Up @@ -904,8 +904,8 @@ ZenodoManager <- R6Class("ZenodoManager",
newapi <- FALSE
}
if(!is.null(record)) recordId <- record$id
fileparts <- strsplit(path,"/")
filename <- unlist(fileparts)[length(fileparts)]
fileparts <- unlist(strsplit(path,"/"))
filename <- fileparts[length(fileparts)]
if(!"bucket" %in% names(record$links)){
self$WARN(sprintf("No bucket link for record id = %s. Revert to old file upload API", recordId))
newapi <- FALSE
Expand Down

0 comments on commit 65e8298

Please sign in to comment.