Hi
When trying to upload multiple files via fileInput("files", ..., multiple = TRUE) the input$files data frame contains identical entries in datapath for different input files, e.g:
name datapath
1 2012-02-06_kfsq120201_teg_rp0319_runid-1.rds /tmp/RtmpBNyxXI/a759a583afcd07c7dea87b0a/0
2 2012-02-14_kfsq120201_teg_rp0319_runid-1.rds /tmp/RtmpBNyxXI/a759a583afcd07c7dea87b0a/4
3 2012-03-06_kfsq120201_teg_rp0319_runid-1.rds /tmp/RtmpBNyxXI/a759a583afcd07c7dea87b0a/4
4 2012-03-07_kfsq120201_teg_rp0319_runid-1.rds /tmp/RtmpBNyxXI/a759a583afcd07c7dea87b0a/4
5 2012-03-16_kfsq120201_teg_rp0319_runid-1.rds /tmp/RtmpBNyxXI/a759a583afcd07c7dea87b0a/4
Looking the fileupload.R source it appears that the datapath filename is the length of (.files):
filename <- file.path(.dir, as.character(length(.files)))
Are some files uploaded simultaneously, so that the first (0) gets its own datapath, but the remaining four gets the same (4)?
Running shiny 0.5.0, and this is reproducible with different filetypes. Any ideas?
Best Regards
./ Kristoffer