--
You received this message because you are subscribed to the Google Groups "Shiny - Web Framework for R" group.
To unsubscribe from this group and stop receiving emails from it, send an email to shiny-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/shiny-discuss/CAEra%2BeJdtpM_JYzcLVTDTJ4J%3DUFn-uJprOuYSDPgTv5gwBYZTA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
I guess that is just a typo. You can replace basedir() with dirname(). Regards, Yihui On Mon, May 18, 2015 at 12:21 AM, Agaz Hussain Wani
#' When files get uploaded, their new filenames are gibberish.#' This function renames all uploaded files to their original names
#' @param x The dataframe returned from a shiny::fileInputfixUploadedFilesNames <- function(x) { if (is.null(x)) { return() } oldNames = x$datapath newNames = file.path(dirname(x$datapath), x$name) file.rename(from = oldNames, to = newNames) x$datapath <- newNames x}