I tried to create a Webform in WolframCloud that asks/browses for a file and then uploads it to a specific folder. The following are the directions I investigated but it does not work:
CloudDeploy @
FormFunction[
"fname" -> "String",
Module[{st1, st2},
st1 = "E:\\math9\\Personal Lessons\\" <> #fname <> ".xls";
st2 = #fname <> ".xls";
{st1, st2, CopyFile[st1, CloudObject[st2]]}
] &
]
I also tried directions like this:
CloudDeploy @
FormFunction[
"fname" -> Interpreter[Restricted["UploadedFile", "XLS"]],
{#fname}
]
but it looks this does not work because it always produces the following error:
The function isn't even evaluated. Can anybody help on how to do this or state that it is not yet possible in the WolframCloud?
Kind regards
Comments
Post a Comment