Open ThHarbig opened 4 years ago
See #575,
Do you use swagger UI or you do it directly through a CURL command?
I'm using javascript axios (but I also tried it via the swagger UI)
if you define your endpoint as
#* @post /endpoint
function(...) {
files <- list(...)
files <- files[!names(files) %in% c("req", "res")]
#list of files in the form list(nm = rawbytes, nm = rawbytes, ...)
}
It should work for now (not in swagger) until we come up with a better solutions.
Swagger has been updated. This should work.
#* @param f:[file]
#* @post /upload
function(f) {
names(f)
}
Closable
I'm using the development version of plumber due to the newly implemented multipart/form-data file upload. I'd like to be able to send an arbitrary number of files to the server. As a workaround I'm sending the files separately and save them in a global variable. However, I think this feature might still be valuable to some users.